POST Api/Item
Request Information
URI Parameters
None.
Body Parameters
ItemParameter| Name | Description | Type | Additional information |
|---|---|---|---|
| ClientID | globally unique identifier |
None. |
|
| ItemCategoryID | globally unique identifier |
None. |
|
| ItemClassificationID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"ClientID": "6b3e6f51-95de-46fd-a612-02c537ff7131",
"ItemCategoryID": "a0c42e07-b552-4c69-b148-bdaf7e2caee3",
"ItemClassificationID": "c66edc46-ecd7-4596-a5be-79e4344173b3"
}
application/xml, text/xml
Sample:
<ItemParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetroot.Entity.Tasks"> <ClientID>6b3e6f51-95de-46fd-a612-02c537ff7131</ClientID> <ItemCategoryID>a0c42e07-b552-4c69-b148-bdaf7e2caee3</ItemCategoryID> <ItemClassificationID>c66edc46-ecd7-4596-a5be-79e4344173b3</ItemClassificationID> </ItemParameter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of Item| Name | Description | Type | Additional information |
|---|---|---|---|
| ClientID | globally unique identifier |
None. |
|
| ItemID | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Price | decimal number |
None. |
|
| ItemCategory | ItemCategory |
None. |
|
| ItemClassification | ItemClassification |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ClientID": "a49f0c7c-a0c5-4dde-a6a5-ee6954e1f087",
"ItemID": "921bbc47-c12f-42b1-aa1f-d0d2fca6f4e7",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "2a4e1e5b-ff3a-4af7-914a-24d0b131681e",
"ClientID": "ed461901-5b3a-44ee-aa36-2fef3d5afc93",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "b8860fd7-4670-4acf-91f1-e781d7db2045",
"ClientID": "cf906811-2647-47e8-be62-068a9276cd9f",
"Name": "sample string 3"
}
},
{
"ClientID": "a49f0c7c-a0c5-4dde-a6a5-ee6954e1f087",
"ItemID": "921bbc47-c12f-42b1-aa1f-d0d2fca6f4e7",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "2a4e1e5b-ff3a-4af7-914a-24d0b131681e",
"ClientID": "ed461901-5b3a-44ee-aa36-2fef3d5afc93",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "b8860fd7-4670-4acf-91f1-e781d7db2045",
"ClientID": "cf906811-2647-47e8-be62-068a9276cd9f",
"Name": "sample string 3"
}
}
]
application/xml, text/xml
Sample:
<ArrayOfItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetroot.Entity.Tasks">
<Item>
<ClientID>a49f0c7c-a0c5-4dde-a6a5-ee6954e1f087</ClientID>
<ItemCategory>
<ClientID>ed461901-5b3a-44ee-aa36-2fef3d5afc93</ClientID>
<ItemCategoryID>2a4e1e5b-ff3a-4af7-914a-24d0b131681e</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>cf906811-2647-47e8-be62-068a9276cd9f</ClientID>
<ItemClassificationID>b8860fd7-4670-4acf-91f1-e781d7db2045</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>921bbc47-c12f-42b1-aa1f-d0d2fca6f4e7</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>a49f0c7c-a0c5-4dde-a6a5-ee6954e1f087</ClientID>
<ItemCategory>
<ClientID>ed461901-5b3a-44ee-aa36-2fef3d5afc93</ClientID>
<ItemCategoryID>2a4e1e5b-ff3a-4af7-914a-24d0b131681e</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>cf906811-2647-47e8-be62-068a9276cd9f</ClientID>
<ItemClassificationID>b8860fd7-4670-4acf-91f1-e781d7db2045</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>921bbc47-c12f-42b1-aa1f-d0d2fca6f4e7</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>