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": "475b2c03-8ed1-4851-9cd0-2ec5bcbb8b0a",
"ItemCategoryID": "5ccf3b87-1bf8-4d9f-984d-1c99272da597",
"ItemClassificationID": "4a08d932-e73b-4899-8cc6-98457ed32dfa"
}
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>475b2c03-8ed1-4851-9cd0-2ec5bcbb8b0a</ClientID> <ItemCategoryID>5ccf3b87-1bf8-4d9f-984d-1c99272da597</ItemCategoryID> <ItemClassificationID>4a08d932-e73b-4899-8cc6-98457ed32dfa</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": "e5eb3a7a-4943-4f39-b7b8-55a34b98eb30",
"ItemID": "09b6c008-db00-4d6b-af5a-91c0af1994bd",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "c2dd57d3-64a5-4b5b-9981-2eb2be61db67",
"ClientID": "ea2be95e-6eb4-498b-9539-827d67eb0b45",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "87549bb0-af93-4cfa-9769-1ca9633348eb",
"ClientID": "be6855c5-bd7b-4011-a7bb-c45f32b191ae",
"Name": "sample string 3"
}
},
{
"ClientID": "e5eb3a7a-4943-4f39-b7b8-55a34b98eb30",
"ItemID": "09b6c008-db00-4d6b-af5a-91c0af1994bd",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "c2dd57d3-64a5-4b5b-9981-2eb2be61db67",
"ClientID": "ea2be95e-6eb4-498b-9539-827d67eb0b45",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "87549bb0-af93-4cfa-9769-1ca9633348eb",
"ClientID": "be6855c5-bd7b-4011-a7bb-c45f32b191ae",
"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>e5eb3a7a-4943-4f39-b7b8-55a34b98eb30</ClientID>
<ItemCategory>
<ClientID>ea2be95e-6eb4-498b-9539-827d67eb0b45</ClientID>
<ItemCategoryID>c2dd57d3-64a5-4b5b-9981-2eb2be61db67</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>be6855c5-bd7b-4011-a7bb-c45f32b191ae</ClientID>
<ItemClassificationID>87549bb0-af93-4cfa-9769-1ca9633348eb</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>09b6c008-db00-4d6b-af5a-91c0af1994bd</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>e5eb3a7a-4943-4f39-b7b8-55a34b98eb30</ClientID>
<ItemCategory>
<ClientID>ea2be95e-6eb4-498b-9539-827d67eb0b45</ClientID>
<ItemCategoryID>c2dd57d3-64a5-4b5b-9981-2eb2be61db67</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>be6855c5-bd7b-4011-a7bb-c45f32b191ae</ClientID>
<ItemClassificationID>87549bb0-af93-4cfa-9769-1ca9633348eb</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>09b6c008-db00-4d6b-af5a-91c0af1994bd</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>