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": "1e08cdfb-f127-4862-be2b-5ec29e8a9893",
"ItemCategoryID": "ed6fc6fe-1243-405e-937f-6da3c29fec5e",
"ItemClassificationID": "7937d027-d3e1-4244-8f0d-c81098a17878"
}
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>1e08cdfb-f127-4862-be2b-5ec29e8a9893</ClientID> <ItemCategoryID>ed6fc6fe-1243-405e-937f-6da3c29fec5e</ItemCategoryID> <ItemClassificationID>7937d027-d3e1-4244-8f0d-c81098a17878</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": "065cae14-d5e5-4c9e-9391-0bf7448689e1",
"ItemID": "b0e6f869-e613-44a0-bea4-2ddf3d16de14",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "fcd27ef2-ae68-462b-b75b-9118635c07e2",
"ClientID": "c1df5186-e430-4d93-999b-6cdd3e6b9870",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "e756e59f-d6d2-4f2d-b6d2-eb90d68e11e9",
"ClientID": "f86b98a6-8822-424b-86c1-087705112d82",
"Name": "sample string 3"
}
},
{
"ClientID": "065cae14-d5e5-4c9e-9391-0bf7448689e1",
"ItemID": "b0e6f869-e613-44a0-bea4-2ddf3d16de14",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "fcd27ef2-ae68-462b-b75b-9118635c07e2",
"ClientID": "c1df5186-e430-4d93-999b-6cdd3e6b9870",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "e756e59f-d6d2-4f2d-b6d2-eb90d68e11e9",
"ClientID": "f86b98a6-8822-424b-86c1-087705112d82",
"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>065cae14-d5e5-4c9e-9391-0bf7448689e1</ClientID>
<ItemCategory>
<ClientID>c1df5186-e430-4d93-999b-6cdd3e6b9870</ClientID>
<ItemCategoryID>fcd27ef2-ae68-462b-b75b-9118635c07e2</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>f86b98a6-8822-424b-86c1-087705112d82</ClientID>
<ItemClassificationID>e756e59f-d6d2-4f2d-b6d2-eb90d68e11e9</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>b0e6f869-e613-44a0-bea4-2ddf3d16de14</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>065cae14-d5e5-4c9e-9391-0bf7448689e1</ClientID>
<ItemCategory>
<ClientID>c1df5186-e430-4d93-999b-6cdd3e6b9870</ClientID>
<ItemCategoryID>fcd27ef2-ae68-462b-b75b-9118635c07e2</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>f86b98a6-8822-424b-86c1-087705112d82</ClientID>
<ItemClassificationID>e756e59f-d6d2-4f2d-b6d2-eb90d68e11e9</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>b0e6f869-e613-44a0-bea4-2ddf3d16de14</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>