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": "f3f2b075-8aeb-405f-993e-797e4721bb04",
"ItemCategoryID": "7c24b615-aaf6-4691-9489-6d60ed4d63af",
"ItemClassificationID": "52664c4d-650d-4c9a-a6cc-8cf12b8f9fa8"
}
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>f3f2b075-8aeb-405f-993e-797e4721bb04</ClientID> <ItemCategoryID>7c24b615-aaf6-4691-9489-6d60ed4d63af</ItemCategoryID> <ItemClassificationID>52664c4d-650d-4c9a-a6cc-8cf12b8f9fa8</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": "0ddd0f18-c728-4e14-9874-281e6898b050",
"ItemID": "e737d17b-c591-4e6a-9809-fcd257d19c5e",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "adfddac9-0771-4cc4-9135-139d797ca1ba",
"ClientID": "27b0efbc-0a61-421d-b609-96f4fded925e",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "4b8fc3d8-e520-4fd2-bef8-866c91c0d75b",
"ClientID": "d49ff5f9-2afb-45e2-bbe5-584d3ce2bd6f",
"Name": "sample string 3"
}
},
{
"ClientID": "0ddd0f18-c728-4e14-9874-281e6898b050",
"ItemID": "e737d17b-c591-4e6a-9809-fcd257d19c5e",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "adfddac9-0771-4cc4-9135-139d797ca1ba",
"ClientID": "27b0efbc-0a61-421d-b609-96f4fded925e",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "4b8fc3d8-e520-4fd2-bef8-866c91c0d75b",
"ClientID": "d49ff5f9-2afb-45e2-bbe5-584d3ce2bd6f",
"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>0ddd0f18-c728-4e14-9874-281e6898b050</ClientID>
<ItemCategory>
<ClientID>27b0efbc-0a61-421d-b609-96f4fded925e</ClientID>
<ItemCategoryID>adfddac9-0771-4cc4-9135-139d797ca1ba</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>d49ff5f9-2afb-45e2-bbe5-584d3ce2bd6f</ClientID>
<ItemClassificationID>4b8fc3d8-e520-4fd2-bef8-866c91c0d75b</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>e737d17b-c591-4e6a-9809-fcd257d19c5e</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>0ddd0f18-c728-4e14-9874-281e6898b050</ClientID>
<ItemCategory>
<ClientID>27b0efbc-0a61-421d-b609-96f4fded925e</ClientID>
<ItemCategoryID>adfddac9-0771-4cc4-9135-139d797ca1ba</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>d49ff5f9-2afb-45e2-bbe5-584d3ce2bd6f</ClientID>
<ItemClassificationID>4b8fc3d8-e520-4fd2-bef8-866c91c0d75b</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>e737d17b-c591-4e6a-9809-fcd257d19c5e</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>