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": "ec4213da-5d74-49bc-adb5-dd2d623cedc6",
"ItemCategoryID": "aafd8590-e8e3-4a37-823a-67c5fbc1ae52",
"ItemClassificationID": "c972fa05-f0ba-4981-b437-a841c40bd9ed"
}
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>ec4213da-5d74-49bc-adb5-dd2d623cedc6</ClientID> <ItemCategoryID>aafd8590-e8e3-4a37-823a-67c5fbc1ae52</ItemCategoryID> <ItemClassificationID>c972fa05-f0ba-4981-b437-a841c40bd9ed</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": "c1203f10-13b2-471c-8cb7-10266e6ba8ec",
"ItemID": "467a760f-a826-43e8-a993-874646e1251d",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "0cef11c0-3c02-4c05-9713-af0c5c99d483",
"ClientID": "202e5fd7-491f-41a7-8b3d-2c284f7140d5",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "9944c1ee-dc6a-4d2e-a318-43c0fc4baac0",
"ClientID": "357368e7-e203-46fb-a99f-9ea27eee190b",
"Name": "sample string 3"
}
},
{
"ClientID": "c1203f10-13b2-471c-8cb7-10266e6ba8ec",
"ItemID": "467a760f-a826-43e8-a993-874646e1251d",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "0cef11c0-3c02-4c05-9713-af0c5c99d483",
"ClientID": "202e5fd7-491f-41a7-8b3d-2c284f7140d5",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "9944c1ee-dc6a-4d2e-a318-43c0fc4baac0",
"ClientID": "357368e7-e203-46fb-a99f-9ea27eee190b",
"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>c1203f10-13b2-471c-8cb7-10266e6ba8ec</ClientID>
<ItemCategory>
<ClientID>202e5fd7-491f-41a7-8b3d-2c284f7140d5</ClientID>
<ItemCategoryID>0cef11c0-3c02-4c05-9713-af0c5c99d483</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>357368e7-e203-46fb-a99f-9ea27eee190b</ClientID>
<ItemClassificationID>9944c1ee-dc6a-4d2e-a318-43c0fc4baac0</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>467a760f-a826-43e8-a993-874646e1251d</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>c1203f10-13b2-471c-8cb7-10266e6ba8ec</ClientID>
<ItemCategory>
<ClientID>202e5fd7-491f-41a7-8b3d-2c284f7140d5</ClientID>
<ItemCategoryID>0cef11c0-3c02-4c05-9713-af0c5c99d483</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>357368e7-e203-46fb-a99f-9ea27eee190b</ClientID>
<ItemClassificationID>9944c1ee-dc6a-4d2e-a318-43c0fc4baac0</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>467a760f-a826-43e8-a993-874646e1251d</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>