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": "f14e7450-812c-4eda-82b3-08cb132eecd9",
"ItemCategoryID": "53a6a526-61ca-4bc7-9df7-75721a882e08",
"ItemClassificationID": "55b07435-c435-4055-b764-fe48cb285f9a"
}
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>f14e7450-812c-4eda-82b3-08cb132eecd9</ClientID> <ItemCategoryID>53a6a526-61ca-4bc7-9df7-75721a882e08</ItemCategoryID> <ItemClassificationID>55b07435-c435-4055-b764-fe48cb285f9a</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": "417c0871-0056-446d-b28e-d640c29b42af",
"ItemID": "62775160-48ff-475c-bc03-41aecd4b16a2",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "292d17a2-26bf-43b8-ab85-7029acab41d9",
"ClientID": "38699249-21f1-478a-be8b-178c7acaa862",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "fc8de419-6b8b-41ff-a308-d0616a8c7642",
"ClientID": "681dd4ab-bbb4-4f1f-92ca-15d31c306f24",
"Name": "sample string 3"
}
},
{
"ClientID": "417c0871-0056-446d-b28e-d640c29b42af",
"ItemID": "62775160-48ff-475c-bc03-41aecd4b16a2",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "292d17a2-26bf-43b8-ab85-7029acab41d9",
"ClientID": "38699249-21f1-478a-be8b-178c7acaa862",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "fc8de419-6b8b-41ff-a308-d0616a8c7642",
"ClientID": "681dd4ab-bbb4-4f1f-92ca-15d31c306f24",
"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>417c0871-0056-446d-b28e-d640c29b42af</ClientID>
<ItemCategory>
<ClientID>38699249-21f1-478a-be8b-178c7acaa862</ClientID>
<ItemCategoryID>292d17a2-26bf-43b8-ab85-7029acab41d9</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>681dd4ab-bbb4-4f1f-92ca-15d31c306f24</ClientID>
<ItemClassificationID>fc8de419-6b8b-41ff-a308-d0616a8c7642</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>62775160-48ff-475c-bc03-41aecd4b16a2</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>417c0871-0056-446d-b28e-d640c29b42af</ClientID>
<ItemCategory>
<ClientID>38699249-21f1-478a-be8b-178c7acaa862</ClientID>
<ItemCategoryID>292d17a2-26bf-43b8-ab85-7029acab41d9</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>681dd4ab-bbb4-4f1f-92ca-15d31c306f24</ClientID>
<ItemClassificationID>fc8de419-6b8b-41ff-a308-d0616a8c7642</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>62775160-48ff-475c-bc03-41aecd4b16a2</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>