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": "96e70aec-e77f-485b-84ea-58b2b0a5432c",
"ItemCategoryID": "677c96d8-0273-46fe-b7a7-df0093e09066",
"ItemClassificationID": "3b6a4b7c-ad44-4b79-83b9-e0c4793a1912"
}
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>96e70aec-e77f-485b-84ea-58b2b0a5432c</ClientID> <ItemCategoryID>677c96d8-0273-46fe-b7a7-df0093e09066</ItemCategoryID> <ItemClassificationID>3b6a4b7c-ad44-4b79-83b9-e0c4793a1912</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": "10fe99af-8332-4201-9fe3-165a1edeeae1",
"ItemID": "c40f16a4-b03e-4eb7-9b90-3387403897d0",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "f0950174-258b-4b03-a939-e82f2eeadfbe",
"ClientID": "d314d7d1-b39f-469e-b96c-19fc059b69a5",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "4d737acf-e627-469e-8609-dddc56a3c5c4",
"ClientID": "ba343985-19e5-4712-b1a2-f736c3479669",
"Name": "sample string 3"
}
},
{
"ClientID": "10fe99af-8332-4201-9fe3-165a1edeeae1",
"ItemID": "c40f16a4-b03e-4eb7-9b90-3387403897d0",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "f0950174-258b-4b03-a939-e82f2eeadfbe",
"ClientID": "d314d7d1-b39f-469e-b96c-19fc059b69a5",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "4d737acf-e627-469e-8609-dddc56a3c5c4",
"ClientID": "ba343985-19e5-4712-b1a2-f736c3479669",
"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>10fe99af-8332-4201-9fe3-165a1edeeae1</ClientID>
<ItemCategory>
<ClientID>d314d7d1-b39f-469e-b96c-19fc059b69a5</ClientID>
<ItemCategoryID>f0950174-258b-4b03-a939-e82f2eeadfbe</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>ba343985-19e5-4712-b1a2-f736c3479669</ClientID>
<ItemClassificationID>4d737acf-e627-469e-8609-dddc56a3c5c4</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>c40f16a4-b03e-4eb7-9b90-3387403897d0</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>10fe99af-8332-4201-9fe3-165a1edeeae1</ClientID>
<ItemCategory>
<ClientID>d314d7d1-b39f-469e-b96c-19fc059b69a5</ClientID>
<ItemCategoryID>f0950174-258b-4b03-a939-e82f2eeadfbe</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>ba343985-19e5-4712-b1a2-f736c3479669</ClientID>
<ItemClassificationID>4d737acf-e627-469e-8609-dddc56a3c5c4</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>c40f16a4-b03e-4eb7-9b90-3387403897d0</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>