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": "9f34fe20-4cef-4c98-b941-6f1c5526bcca",
"ItemCategoryID": "326402b6-ec0d-400c-a338-6dd9049b2742",
"ItemClassificationID": "0e61c256-a2ac-4e8c-9a21-f23eefd10b5b"
}
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>9f34fe20-4cef-4c98-b941-6f1c5526bcca</ClientID> <ItemCategoryID>326402b6-ec0d-400c-a338-6dd9049b2742</ItemCategoryID> <ItemClassificationID>0e61c256-a2ac-4e8c-9a21-f23eefd10b5b</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": "1b3e1967-386d-41b4-bc8f-d7fcb0102019",
"ItemID": "bb53f376-5f93-4e93-8588-6af44b4dd207",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "8581e0c5-9520-4053-8fb2-49abbb97f3e8",
"ClientID": "47fd7aa8-db5d-42d8-b866-37bf3edcb103",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "7af7b354-c3d1-4950-9b04-efa4536b9355",
"ClientID": "1cabded7-a209-4c48-b8a9-d4feda0f4d47",
"Name": "sample string 3"
}
},
{
"ClientID": "1b3e1967-386d-41b4-bc8f-d7fcb0102019",
"ItemID": "bb53f376-5f93-4e93-8588-6af44b4dd207",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "8581e0c5-9520-4053-8fb2-49abbb97f3e8",
"ClientID": "47fd7aa8-db5d-42d8-b866-37bf3edcb103",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "7af7b354-c3d1-4950-9b04-efa4536b9355",
"ClientID": "1cabded7-a209-4c48-b8a9-d4feda0f4d47",
"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>1b3e1967-386d-41b4-bc8f-d7fcb0102019</ClientID>
<ItemCategory>
<ClientID>47fd7aa8-db5d-42d8-b866-37bf3edcb103</ClientID>
<ItemCategoryID>8581e0c5-9520-4053-8fb2-49abbb97f3e8</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>1cabded7-a209-4c48-b8a9-d4feda0f4d47</ClientID>
<ItemClassificationID>7af7b354-c3d1-4950-9b04-efa4536b9355</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>bb53f376-5f93-4e93-8588-6af44b4dd207</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>1b3e1967-386d-41b4-bc8f-d7fcb0102019</ClientID>
<ItemCategory>
<ClientID>47fd7aa8-db5d-42d8-b866-37bf3edcb103</ClientID>
<ItemCategoryID>8581e0c5-9520-4053-8fb2-49abbb97f3e8</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>1cabded7-a209-4c48-b8a9-d4feda0f4d47</ClientID>
<ItemClassificationID>7af7b354-c3d1-4950-9b04-efa4536b9355</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>bb53f376-5f93-4e93-8588-6af44b4dd207</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>