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": "e8a9ee2f-3aa1-42e0-b0b8-b4702ff54a89",
"ItemCategoryID": "a2ee3e1f-e2ae-4449-a913-fd475270c79d",
"ItemClassificationID": "04c40650-709c-42ba-b410-9ccc3701db61"
}
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>e8a9ee2f-3aa1-42e0-b0b8-b4702ff54a89</ClientID> <ItemCategoryID>a2ee3e1f-e2ae-4449-a913-fd475270c79d</ItemCategoryID> <ItemClassificationID>04c40650-709c-42ba-b410-9ccc3701db61</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": "d7f35715-76b0-4c91-a640-f7160ed0aa00",
"ItemID": "c0da421b-d04d-47f3-a5f8-6be4e3bc50e7",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "1608de91-4bd3-4a76-b1d5-41f5faf764bc",
"ClientID": "cf6af800-6cb7-4a06-b2f3-82ccc0508913",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "e3832167-1959-43d6-a97a-935df67f0ce8",
"ClientID": "cb763082-a309-450c-9d47-86ee4763e752",
"Name": "sample string 3"
}
},
{
"ClientID": "d7f35715-76b0-4c91-a640-f7160ed0aa00",
"ItemID": "c0da421b-d04d-47f3-a5f8-6be4e3bc50e7",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "1608de91-4bd3-4a76-b1d5-41f5faf764bc",
"ClientID": "cf6af800-6cb7-4a06-b2f3-82ccc0508913",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "e3832167-1959-43d6-a97a-935df67f0ce8",
"ClientID": "cb763082-a309-450c-9d47-86ee4763e752",
"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>d7f35715-76b0-4c91-a640-f7160ed0aa00</ClientID>
<ItemCategory>
<ClientID>cf6af800-6cb7-4a06-b2f3-82ccc0508913</ClientID>
<ItemCategoryID>1608de91-4bd3-4a76-b1d5-41f5faf764bc</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>cb763082-a309-450c-9d47-86ee4763e752</ClientID>
<ItemClassificationID>e3832167-1959-43d6-a97a-935df67f0ce8</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>c0da421b-d04d-47f3-a5f8-6be4e3bc50e7</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>d7f35715-76b0-4c91-a640-f7160ed0aa00</ClientID>
<ItemCategory>
<ClientID>cf6af800-6cb7-4a06-b2f3-82ccc0508913</ClientID>
<ItemCategoryID>1608de91-4bd3-4a76-b1d5-41f5faf764bc</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>cb763082-a309-450c-9d47-86ee4763e752</ClientID>
<ItemClassificationID>e3832167-1959-43d6-a97a-935df67f0ce8</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>c0da421b-d04d-47f3-a5f8-6be4e3bc50e7</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>