POST Api/Item
Request Information
URI Parameters
None.
Body Parameters
ItemParameterName | 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": "24efedde-e3f1-4e89-a2a4-815851bf6ca2", "ItemCategoryID": "eebcf9d4-02c1-4321-8fb9-c417eef7234a", "ItemClassificationID": "eabd05e7-708f-4277-99a9-32b70f4a8ea7" }
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>24efedde-e3f1-4e89-a2a4-815851bf6ca2</ClientID> <ItemCategoryID>eebcf9d4-02c1-4321-8fb9-c417eef7234a</ItemCategoryID> <ItemClassificationID>eabd05e7-708f-4277-99a9-32b70f4a8ea7</ItemClassificationID> </ItemParameter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ItemName | 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": "6d47e911-d26a-477c-8c49-348eb3c15fa9", "ItemID": "d3fb44cb-1427-4466-bba9-a627ec445e36", "Name": "sample string 3", "Price": 4.1, "ItemCategory": { "ItemCategoryID": "2faf3108-369f-48fe-a8ae-948798af8855", "ClientID": "f61b766b-8d60-46ce-a55a-080cff8b32d3", "Name": "sample string 3" }, "ItemClassification": { "ItemClassificationID": "925350d7-246a-4dd8-a2c4-c45716a8083f", "ClientID": "1a4fab2f-8d67-4cad-8d2b-76920949ec39", "Name": "sample string 3" } }, { "ClientID": "6d47e911-d26a-477c-8c49-348eb3c15fa9", "ItemID": "d3fb44cb-1427-4466-bba9-a627ec445e36", "Name": "sample string 3", "Price": 4.1, "ItemCategory": { "ItemCategoryID": "2faf3108-369f-48fe-a8ae-948798af8855", "ClientID": "f61b766b-8d60-46ce-a55a-080cff8b32d3", "Name": "sample string 3" }, "ItemClassification": { "ItemClassificationID": "925350d7-246a-4dd8-a2c4-c45716a8083f", "ClientID": "1a4fab2f-8d67-4cad-8d2b-76920949ec39", "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>6d47e911-d26a-477c-8c49-348eb3c15fa9</ClientID> <ItemCategory> <ClientID>f61b766b-8d60-46ce-a55a-080cff8b32d3</ClientID> <ItemCategoryID>2faf3108-369f-48fe-a8ae-948798af8855</ItemCategoryID> <Name>sample string 3</Name> </ItemCategory> <ItemClassification> <ClientID>1a4fab2f-8d67-4cad-8d2b-76920949ec39</ClientID> <ItemClassificationID>925350d7-246a-4dd8-a2c4-c45716a8083f</ItemClassificationID> <Name>sample string 3</Name> </ItemClassification> <ItemID>d3fb44cb-1427-4466-bba9-a627ec445e36</ItemID> <Name>sample string 3</Name> <Price>4.1</Price> </Item> <Item> <ClientID>6d47e911-d26a-477c-8c49-348eb3c15fa9</ClientID> <ItemCategory> <ClientID>f61b766b-8d60-46ce-a55a-080cff8b32d3</ClientID> <ItemCategoryID>2faf3108-369f-48fe-a8ae-948798af8855</ItemCategoryID> <Name>sample string 3</Name> </ItemCategory> <ItemClassification> <ClientID>1a4fab2f-8d67-4cad-8d2b-76920949ec39</ClientID> <ItemClassificationID>925350d7-246a-4dd8-a2c4-c45716a8083f</ItemClassificationID> <Name>sample string 3</Name> </ItemClassification> <ItemID>d3fb44cb-1427-4466-bba9-a627ec445e36</ItemID> <Name>sample string 3</Name> <Price>4.1</Price> </Item> </ArrayOfItem>