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": "3446a24c-6a2e-45fc-aab0-e13e51442995",
"ItemCategoryID": "1945412a-8af5-4cca-894a-5869de1266c4",
"ItemClassificationID": "e599aa9c-5d15-4755-be19-dd0e7facfcf9"
}
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>3446a24c-6a2e-45fc-aab0-e13e51442995</ClientID> <ItemCategoryID>1945412a-8af5-4cca-894a-5869de1266c4</ItemCategoryID> <ItemClassificationID>e599aa9c-5d15-4755-be19-dd0e7facfcf9</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": "5b807f37-dd6d-4dc1-8590-301348b309b9",
"ItemID": "efa0027f-f322-4e38-a055-52c7b573db96",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "5f6d6c7e-02b9-4ce0-9e49-291fd263541e",
"ClientID": "1464bada-0246-4fbc-a1c0-029c0a4cfeb8",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "b1642586-c81c-41a6-b11f-621f0161a253",
"ClientID": "7b75784e-ec29-4c6e-a99e-d7fc0edb3590",
"Name": "sample string 3"
}
},
{
"ClientID": "5b807f37-dd6d-4dc1-8590-301348b309b9",
"ItemID": "efa0027f-f322-4e38-a055-52c7b573db96",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "5f6d6c7e-02b9-4ce0-9e49-291fd263541e",
"ClientID": "1464bada-0246-4fbc-a1c0-029c0a4cfeb8",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "b1642586-c81c-41a6-b11f-621f0161a253",
"ClientID": "7b75784e-ec29-4c6e-a99e-d7fc0edb3590",
"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>5b807f37-dd6d-4dc1-8590-301348b309b9</ClientID>
<ItemCategory>
<ClientID>1464bada-0246-4fbc-a1c0-029c0a4cfeb8</ClientID>
<ItemCategoryID>5f6d6c7e-02b9-4ce0-9e49-291fd263541e</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>7b75784e-ec29-4c6e-a99e-d7fc0edb3590</ClientID>
<ItemClassificationID>b1642586-c81c-41a6-b11f-621f0161a253</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>efa0027f-f322-4e38-a055-52c7b573db96</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>5b807f37-dd6d-4dc1-8590-301348b309b9</ClientID>
<ItemCategory>
<ClientID>1464bada-0246-4fbc-a1c0-029c0a4cfeb8</ClientID>
<ItemCategoryID>5f6d6c7e-02b9-4ce0-9e49-291fd263541e</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>7b75784e-ec29-4c6e-a99e-d7fc0edb3590</ClientID>
<ItemClassificationID>b1642586-c81c-41a6-b11f-621f0161a253</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>efa0027f-f322-4e38-a055-52c7b573db96</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>