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": "440dd9c7-f248-400f-abf9-2058b4558b9e",
"ItemCategoryID": "34d85673-3333-44ce-be4f-7c15c2cf5dba",
"ItemClassificationID": "ac793958-f05f-48a1-a1ff-dec440495f8e"
}
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>440dd9c7-f248-400f-abf9-2058b4558b9e</ClientID> <ItemCategoryID>34d85673-3333-44ce-be4f-7c15c2cf5dba</ItemCategoryID> <ItemClassificationID>ac793958-f05f-48a1-a1ff-dec440495f8e</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": "35188099-e9b1-4f5b-9a3a-44c82afe9e70",
"ItemID": "cf6e33ed-cfe5-4268-9e62-08de41f35c06",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "75fde84b-0ddc-4d09-b926-1afdc5c75fcf",
"ClientID": "5963c9b5-3de4-41a8-8255-758cdba563af",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "17847d79-2000-4fb3-801c-858f8e9f4608",
"ClientID": "a02e6288-6236-4373-a9bd-7571b2e1a99c",
"Name": "sample string 3"
}
},
{
"ClientID": "35188099-e9b1-4f5b-9a3a-44c82afe9e70",
"ItemID": "cf6e33ed-cfe5-4268-9e62-08de41f35c06",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "75fde84b-0ddc-4d09-b926-1afdc5c75fcf",
"ClientID": "5963c9b5-3de4-41a8-8255-758cdba563af",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "17847d79-2000-4fb3-801c-858f8e9f4608",
"ClientID": "a02e6288-6236-4373-a9bd-7571b2e1a99c",
"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>35188099-e9b1-4f5b-9a3a-44c82afe9e70</ClientID>
<ItemCategory>
<ClientID>5963c9b5-3de4-41a8-8255-758cdba563af</ClientID>
<ItemCategoryID>75fde84b-0ddc-4d09-b926-1afdc5c75fcf</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>a02e6288-6236-4373-a9bd-7571b2e1a99c</ClientID>
<ItemClassificationID>17847d79-2000-4fb3-801c-858f8e9f4608</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>cf6e33ed-cfe5-4268-9e62-08de41f35c06</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>35188099-e9b1-4f5b-9a3a-44c82afe9e70</ClientID>
<ItemCategory>
<ClientID>5963c9b5-3de4-41a8-8255-758cdba563af</ClientID>
<ItemCategoryID>75fde84b-0ddc-4d09-b926-1afdc5c75fcf</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>a02e6288-6236-4373-a9bd-7571b2e1a99c</ClientID>
<ItemClassificationID>17847d79-2000-4fb3-801c-858f8e9f4608</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>cf6e33ed-cfe5-4268-9e62-08de41f35c06</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>