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": "862819db-fe7c-4a75-83c5-f68db8240d35",
"ItemCategoryID": "c2779e72-a407-4d66-a406-fbecf5b040e1",
"ItemClassificationID": "aced1177-6f76-42b8-8317-c5dbc88fdd44"
}
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>862819db-fe7c-4a75-83c5-f68db8240d35</ClientID> <ItemCategoryID>c2779e72-a407-4d66-a406-fbecf5b040e1</ItemCategoryID> <ItemClassificationID>aced1177-6f76-42b8-8317-c5dbc88fdd44</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": "f77d0a5e-c54b-4f5c-a477-ceaea20d51c2",
"ItemID": "c10fd355-a9d4-4d3b-8c1c-fdcd66106e9d",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "a7c3aa2c-defa-4a6a-ad92-11ff021a0981",
"ClientID": "fafe86cf-ffb0-4920-8579-45905baccff8",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "c241e7dc-1c9e-4bc5-bc9b-8d37e51978fe",
"ClientID": "87bd69de-118b-4801-a675-23a701adc173",
"Name": "sample string 3"
}
},
{
"ClientID": "f77d0a5e-c54b-4f5c-a477-ceaea20d51c2",
"ItemID": "c10fd355-a9d4-4d3b-8c1c-fdcd66106e9d",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "a7c3aa2c-defa-4a6a-ad92-11ff021a0981",
"ClientID": "fafe86cf-ffb0-4920-8579-45905baccff8",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "c241e7dc-1c9e-4bc5-bc9b-8d37e51978fe",
"ClientID": "87bd69de-118b-4801-a675-23a701adc173",
"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>f77d0a5e-c54b-4f5c-a477-ceaea20d51c2</ClientID>
<ItemCategory>
<ClientID>fafe86cf-ffb0-4920-8579-45905baccff8</ClientID>
<ItemCategoryID>a7c3aa2c-defa-4a6a-ad92-11ff021a0981</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>87bd69de-118b-4801-a675-23a701adc173</ClientID>
<ItemClassificationID>c241e7dc-1c9e-4bc5-bc9b-8d37e51978fe</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>c10fd355-a9d4-4d3b-8c1c-fdcd66106e9d</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>f77d0a5e-c54b-4f5c-a477-ceaea20d51c2</ClientID>
<ItemCategory>
<ClientID>fafe86cf-ffb0-4920-8579-45905baccff8</ClientID>
<ItemCategoryID>a7c3aa2c-defa-4a6a-ad92-11ff021a0981</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>87bd69de-118b-4801-a675-23a701adc173</ClientID>
<ItemClassificationID>c241e7dc-1c9e-4bc5-bc9b-8d37e51978fe</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>c10fd355-a9d4-4d3b-8c1c-fdcd66106e9d</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>