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": "bab00e31-d094-4e12-ab53-4156aad3ebc7", "ItemCategoryID": "51640a46-6261-46c8-a8da-7185ba5fa8c1", "ItemClassificationID": "3e7b3676-d54a-489c-93cc-2c3e2d225987" }
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>bab00e31-d094-4e12-ab53-4156aad3ebc7</ClientID> <ItemCategoryID>51640a46-6261-46c8-a8da-7185ba5fa8c1</ItemCategoryID> <ItemClassificationID>3e7b3676-d54a-489c-93cc-2c3e2d225987</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": "2d2c8374-47d0-4c70-9da0-2fac5e3982ce", "ItemID": "f632104d-4005-4015-ac15-f8adbbef02fc", "Name": "sample string 3", "Price": 4.1, "ItemCategory": { "ItemCategoryID": "e708f4f3-42a5-45d4-bcaa-73320bb8a784", "ClientID": "7eb8dd8f-4e01-4efd-9d84-5ef8853863c8", "Name": "sample string 3" }, "ItemClassification": { "ItemClassificationID": "219824e8-7ecf-4ee8-a3bd-d4793a349068", "ClientID": "8463e60d-b5bd-4790-948a-f87e971ad2e1", "Name": "sample string 3" } }, { "ClientID": "2d2c8374-47d0-4c70-9da0-2fac5e3982ce", "ItemID": "f632104d-4005-4015-ac15-f8adbbef02fc", "Name": "sample string 3", "Price": 4.1, "ItemCategory": { "ItemCategoryID": "e708f4f3-42a5-45d4-bcaa-73320bb8a784", "ClientID": "7eb8dd8f-4e01-4efd-9d84-5ef8853863c8", "Name": "sample string 3" }, "ItemClassification": { "ItemClassificationID": "219824e8-7ecf-4ee8-a3bd-d4793a349068", "ClientID": "8463e60d-b5bd-4790-948a-f87e971ad2e1", "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>2d2c8374-47d0-4c70-9da0-2fac5e3982ce</ClientID> <ItemCategory> <ClientID>7eb8dd8f-4e01-4efd-9d84-5ef8853863c8</ClientID> <ItemCategoryID>e708f4f3-42a5-45d4-bcaa-73320bb8a784</ItemCategoryID> <Name>sample string 3</Name> </ItemCategory> <ItemClassification> <ClientID>8463e60d-b5bd-4790-948a-f87e971ad2e1</ClientID> <ItemClassificationID>219824e8-7ecf-4ee8-a3bd-d4793a349068</ItemClassificationID> <Name>sample string 3</Name> </ItemClassification> <ItemID>f632104d-4005-4015-ac15-f8adbbef02fc</ItemID> <Name>sample string 3</Name> <Price>4.1</Price> </Item> <Item> <ClientID>2d2c8374-47d0-4c70-9da0-2fac5e3982ce</ClientID> <ItemCategory> <ClientID>7eb8dd8f-4e01-4efd-9d84-5ef8853863c8</ClientID> <ItemCategoryID>e708f4f3-42a5-45d4-bcaa-73320bb8a784</ItemCategoryID> <Name>sample string 3</Name> </ItemCategory> <ItemClassification> <ClientID>8463e60d-b5bd-4790-948a-f87e971ad2e1</ClientID> <ItemClassificationID>219824e8-7ecf-4ee8-a3bd-d4793a349068</ItemClassificationID> <Name>sample string 3</Name> </ItemClassification> <ItemID>f632104d-4005-4015-ac15-f8adbbef02fc</ItemID> <Name>sample string 3</Name> <Price>4.1</Price> </Item> </ArrayOfItem>