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": "eb73ee64-9d9e-400f-a220-99888124200b",
"ItemCategoryID": "288e22eb-3afa-4cd5-88a4-2803f43fc0a9",
"ItemClassificationID": "e2dc0097-663f-4ab5-ad9d-d3b33b10cded"
}
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>eb73ee64-9d9e-400f-a220-99888124200b</ClientID> <ItemCategoryID>288e22eb-3afa-4cd5-88a4-2803f43fc0a9</ItemCategoryID> <ItemClassificationID>e2dc0097-663f-4ab5-ad9d-d3b33b10cded</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": "9efcb6ea-aece-48e4-9920-aeb7ecc92ab2",
"ItemID": "43cca6ca-4815-4c62-8d28-705d7b0aaa6a",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "6cecaf51-1e96-4377-8d66-48fac4e30da3",
"ClientID": "f31e5a40-5541-44f1-aea1-7f36f6c617dc",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "fd88da91-5a96-4ad7-a6cf-b50c5c1aa6a2",
"ClientID": "f319bfed-9ce7-4698-acf1-8b5a3f62d67c",
"Name": "sample string 3"
}
},
{
"ClientID": "9efcb6ea-aece-48e4-9920-aeb7ecc92ab2",
"ItemID": "43cca6ca-4815-4c62-8d28-705d7b0aaa6a",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "6cecaf51-1e96-4377-8d66-48fac4e30da3",
"ClientID": "f31e5a40-5541-44f1-aea1-7f36f6c617dc",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "fd88da91-5a96-4ad7-a6cf-b50c5c1aa6a2",
"ClientID": "f319bfed-9ce7-4698-acf1-8b5a3f62d67c",
"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>9efcb6ea-aece-48e4-9920-aeb7ecc92ab2</ClientID>
<ItemCategory>
<ClientID>f31e5a40-5541-44f1-aea1-7f36f6c617dc</ClientID>
<ItemCategoryID>6cecaf51-1e96-4377-8d66-48fac4e30da3</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>f319bfed-9ce7-4698-acf1-8b5a3f62d67c</ClientID>
<ItemClassificationID>fd88da91-5a96-4ad7-a6cf-b50c5c1aa6a2</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>43cca6ca-4815-4c62-8d28-705d7b0aaa6a</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>9efcb6ea-aece-48e4-9920-aeb7ecc92ab2</ClientID>
<ItemCategory>
<ClientID>f31e5a40-5541-44f1-aea1-7f36f6c617dc</ClientID>
<ItemCategoryID>6cecaf51-1e96-4377-8d66-48fac4e30da3</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>f319bfed-9ce7-4698-acf1-8b5a3f62d67c</ClientID>
<ItemClassificationID>fd88da91-5a96-4ad7-a6cf-b50c5c1aa6a2</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>43cca6ca-4815-4c62-8d28-705d7b0aaa6a</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>