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": "b3934f0d-d2ea-4e39-9e31-eaed170dde0c", "ItemCategoryID": "be8af124-1256-471b-bd50-da7dc17d83da", "ItemClassificationID": "c652a2b3-c7d1-44aa-923c-e2bb062f7d31" }
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>b3934f0d-d2ea-4e39-9e31-eaed170dde0c</ClientID> <ItemCategoryID>be8af124-1256-471b-bd50-da7dc17d83da</ItemCategoryID> <ItemClassificationID>c652a2b3-c7d1-44aa-923c-e2bb062f7d31</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": "d6d1eb52-e1ab-461a-9f3f-bcf4342ba5af", "ItemID": "d44db992-5cab-4446-ab77-271f7f692aa2", "Name": "sample string 3", "Price": 4.1, "ItemCategory": { "ItemCategoryID": "7bd3c8ba-8a49-484c-a34b-24d235e7ca17", "ClientID": "2e3e4083-78d3-4390-967a-a274bcda36fc", "Name": "sample string 3" }, "ItemClassification": { "ItemClassificationID": "4110fae5-0ed7-4bb8-9815-2a328235bf89", "ClientID": "e67543f0-d8a3-4780-b2d0-175badfc0b35", "Name": "sample string 3" } }, { "ClientID": "d6d1eb52-e1ab-461a-9f3f-bcf4342ba5af", "ItemID": "d44db992-5cab-4446-ab77-271f7f692aa2", "Name": "sample string 3", "Price": 4.1, "ItemCategory": { "ItemCategoryID": "7bd3c8ba-8a49-484c-a34b-24d235e7ca17", "ClientID": "2e3e4083-78d3-4390-967a-a274bcda36fc", "Name": "sample string 3" }, "ItemClassification": { "ItemClassificationID": "4110fae5-0ed7-4bb8-9815-2a328235bf89", "ClientID": "e67543f0-d8a3-4780-b2d0-175badfc0b35", "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>d6d1eb52-e1ab-461a-9f3f-bcf4342ba5af</ClientID> <ItemCategory> <ClientID>2e3e4083-78d3-4390-967a-a274bcda36fc</ClientID> <ItemCategoryID>7bd3c8ba-8a49-484c-a34b-24d235e7ca17</ItemCategoryID> <Name>sample string 3</Name> </ItemCategory> <ItemClassification> <ClientID>e67543f0-d8a3-4780-b2d0-175badfc0b35</ClientID> <ItemClassificationID>4110fae5-0ed7-4bb8-9815-2a328235bf89</ItemClassificationID> <Name>sample string 3</Name> </ItemClassification> <ItemID>d44db992-5cab-4446-ab77-271f7f692aa2</ItemID> <Name>sample string 3</Name> <Price>4.1</Price> </Item> <Item> <ClientID>d6d1eb52-e1ab-461a-9f3f-bcf4342ba5af</ClientID> <ItemCategory> <ClientID>2e3e4083-78d3-4390-967a-a274bcda36fc</ClientID> <ItemCategoryID>7bd3c8ba-8a49-484c-a34b-24d235e7ca17</ItemCategoryID> <Name>sample string 3</Name> </ItemCategory> <ItemClassification> <ClientID>e67543f0-d8a3-4780-b2d0-175badfc0b35</ClientID> <ItemClassificationID>4110fae5-0ed7-4bb8-9815-2a328235bf89</ItemClassificationID> <Name>sample string 3</Name> </ItemClassification> <ItemID>d44db992-5cab-4446-ab77-271f7f692aa2</ItemID> <Name>sample string 3</Name> <Price>4.1</Price> </Item> </ArrayOfItem>