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": "77244455-2684-4a92-bb68-7012f7c2d0c4",
"ItemCategoryID": "79ea6712-0e7b-41a0-8b6a-e5a604834f62",
"ItemClassificationID": "463cbe62-c914-40df-9882-698c1c6a5cae"
}
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>77244455-2684-4a92-bb68-7012f7c2d0c4</ClientID> <ItemCategoryID>79ea6712-0e7b-41a0-8b6a-e5a604834f62</ItemCategoryID> <ItemClassificationID>463cbe62-c914-40df-9882-698c1c6a5cae</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": "134b613e-8973-4656-a3c2-0f37cceeafbc",
"ItemID": "edcfffbd-b849-4996-b1fe-73224861f203",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "3c6ef293-99f3-4c29-81ec-ba8678f3d642",
"ClientID": "26aa7390-1854-4d96-8205-49af9f0c7983",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "3082436b-674f-4cf8-b7c3-35f6560ade2a",
"ClientID": "bd0787d4-4814-4f3a-814d-da967c6b397f",
"Name": "sample string 3"
}
},
{
"ClientID": "134b613e-8973-4656-a3c2-0f37cceeafbc",
"ItemID": "edcfffbd-b849-4996-b1fe-73224861f203",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "3c6ef293-99f3-4c29-81ec-ba8678f3d642",
"ClientID": "26aa7390-1854-4d96-8205-49af9f0c7983",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "3082436b-674f-4cf8-b7c3-35f6560ade2a",
"ClientID": "bd0787d4-4814-4f3a-814d-da967c6b397f",
"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>134b613e-8973-4656-a3c2-0f37cceeafbc</ClientID>
<ItemCategory>
<ClientID>26aa7390-1854-4d96-8205-49af9f0c7983</ClientID>
<ItemCategoryID>3c6ef293-99f3-4c29-81ec-ba8678f3d642</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>bd0787d4-4814-4f3a-814d-da967c6b397f</ClientID>
<ItemClassificationID>3082436b-674f-4cf8-b7c3-35f6560ade2a</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>edcfffbd-b849-4996-b1fe-73224861f203</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>134b613e-8973-4656-a3c2-0f37cceeafbc</ClientID>
<ItemCategory>
<ClientID>26aa7390-1854-4d96-8205-49af9f0c7983</ClientID>
<ItemCategoryID>3c6ef293-99f3-4c29-81ec-ba8678f3d642</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>bd0787d4-4814-4f3a-814d-da967c6b397f</ClientID>
<ItemClassificationID>3082436b-674f-4cf8-b7c3-35f6560ade2a</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>edcfffbd-b849-4996-b1fe-73224861f203</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>