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": "3fa413b5-70f6-4906-a1c3-1a67e2aa039e",
"ItemCategoryID": "0d0fcbc5-08dd-4737-b591-8aacf1beb015",
"ItemClassificationID": "ce3a0f8a-6db7-42d5-ad63-d9dc0af4445f"
}
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>3fa413b5-70f6-4906-a1c3-1a67e2aa039e</ClientID> <ItemCategoryID>0d0fcbc5-08dd-4737-b591-8aacf1beb015</ItemCategoryID> <ItemClassificationID>ce3a0f8a-6db7-42d5-ad63-d9dc0af4445f</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": "8e77e731-bd9e-483c-97c3-0b7c9fd55afa",
"ItemID": "5107fb6c-95ee-408a-a17d-4c76b04d8590",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "52250d07-dee2-4cb8-a906-e8251b4d44a7",
"ClientID": "35ee792e-733d-4f1a-b02f-6163fc3a8be4",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "f4662f33-2fa4-4ba8-9b5f-62856827a3e7",
"ClientID": "d700d3f3-55dd-4d52-8877-e8702dfd8452",
"Name": "sample string 3"
}
},
{
"ClientID": "8e77e731-bd9e-483c-97c3-0b7c9fd55afa",
"ItemID": "5107fb6c-95ee-408a-a17d-4c76b04d8590",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "52250d07-dee2-4cb8-a906-e8251b4d44a7",
"ClientID": "35ee792e-733d-4f1a-b02f-6163fc3a8be4",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "f4662f33-2fa4-4ba8-9b5f-62856827a3e7",
"ClientID": "d700d3f3-55dd-4d52-8877-e8702dfd8452",
"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>8e77e731-bd9e-483c-97c3-0b7c9fd55afa</ClientID>
<ItemCategory>
<ClientID>35ee792e-733d-4f1a-b02f-6163fc3a8be4</ClientID>
<ItemCategoryID>52250d07-dee2-4cb8-a906-e8251b4d44a7</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>d700d3f3-55dd-4d52-8877-e8702dfd8452</ClientID>
<ItemClassificationID>f4662f33-2fa4-4ba8-9b5f-62856827a3e7</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>5107fb6c-95ee-408a-a17d-4c76b04d8590</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>8e77e731-bd9e-483c-97c3-0b7c9fd55afa</ClientID>
<ItemCategory>
<ClientID>35ee792e-733d-4f1a-b02f-6163fc3a8be4</ClientID>
<ItemCategoryID>52250d07-dee2-4cb8-a906-e8251b4d44a7</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>d700d3f3-55dd-4d52-8877-e8702dfd8452</ClientID>
<ItemClassificationID>f4662f33-2fa4-4ba8-9b5f-62856827a3e7</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>5107fb6c-95ee-408a-a17d-4c76b04d8590</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>