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": "5ef7de6b-b842-4828-97a1-d08c65dd2527",
"ItemCategoryID": "7fb2df45-f419-4d33-b644-4d9702767321",
"ItemClassificationID": "712f0ff3-4644-42e4-9311-1ec6f2ec3895"
}
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>5ef7de6b-b842-4828-97a1-d08c65dd2527</ClientID> <ItemCategoryID>7fb2df45-f419-4d33-b644-4d9702767321</ItemCategoryID> <ItemClassificationID>712f0ff3-4644-42e4-9311-1ec6f2ec3895</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": "51abefb4-1c25-4000-a4dd-727fae491bb0",
"ItemID": "0690e8ee-39e7-49d4-b544-5180157126cf",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "9daee469-2ae9-4178-b2e0-d22373961004",
"ClientID": "4beedca9-4541-4ab7-813f-294c09feb638",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "04b54dda-cc34-402c-a9c4-40938eb50ac7",
"ClientID": "58db4177-8544-480a-b569-bc405aa6910f",
"Name": "sample string 3"
}
},
{
"ClientID": "51abefb4-1c25-4000-a4dd-727fae491bb0",
"ItemID": "0690e8ee-39e7-49d4-b544-5180157126cf",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "9daee469-2ae9-4178-b2e0-d22373961004",
"ClientID": "4beedca9-4541-4ab7-813f-294c09feb638",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "04b54dda-cc34-402c-a9c4-40938eb50ac7",
"ClientID": "58db4177-8544-480a-b569-bc405aa6910f",
"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>51abefb4-1c25-4000-a4dd-727fae491bb0</ClientID>
<ItemCategory>
<ClientID>4beedca9-4541-4ab7-813f-294c09feb638</ClientID>
<ItemCategoryID>9daee469-2ae9-4178-b2e0-d22373961004</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>58db4177-8544-480a-b569-bc405aa6910f</ClientID>
<ItemClassificationID>04b54dda-cc34-402c-a9c4-40938eb50ac7</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>0690e8ee-39e7-49d4-b544-5180157126cf</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>51abefb4-1c25-4000-a4dd-727fae491bb0</ClientID>
<ItemCategory>
<ClientID>4beedca9-4541-4ab7-813f-294c09feb638</ClientID>
<ItemCategoryID>9daee469-2ae9-4178-b2e0-d22373961004</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>58db4177-8544-480a-b569-bc405aa6910f</ClientID>
<ItemClassificationID>04b54dda-cc34-402c-a9c4-40938eb50ac7</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>0690e8ee-39e7-49d4-b544-5180157126cf</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>