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": "5d6e158e-6ad1-40cf-b28e-d613f8f807aa",
"ItemCategoryID": "506cea66-32d9-4d82-9646-0592ac86d66d",
"ItemClassificationID": "99feb545-3514-458d-9331-a3551f4632d0"
}
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>5d6e158e-6ad1-40cf-b28e-d613f8f807aa</ClientID> <ItemCategoryID>506cea66-32d9-4d82-9646-0592ac86d66d</ItemCategoryID> <ItemClassificationID>99feb545-3514-458d-9331-a3551f4632d0</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": "b4ca8150-94f5-4952-a869-5d75694e53e2",
"ItemID": "08c33933-ade9-4237-aeca-932f87b673df",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "03258934-0683-4477-abc9-a2160b31e6a8",
"ClientID": "f9f5af7b-8686-4f6c-867f-cbdf1e905764",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "467f69d5-186d-43be-8a5d-a42f00bdc4d8",
"ClientID": "4425e502-daaa-4e98-8bf4-eb83758052a6",
"Name": "sample string 3"
}
},
{
"ClientID": "b4ca8150-94f5-4952-a869-5d75694e53e2",
"ItemID": "08c33933-ade9-4237-aeca-932f87b673df",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "03258934-0683-4477-abc9-a2160b31e6a8",
"ClientID": "f9f5af7b-8686-4f6c-867f-cbdf1e905764",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "467f69d5-186d-43be-8a5d-a42f00bdc4d8",
"ClientID": "4425e502-daaa-4e98-8bf4-eb83758052a6",
"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>b4ca8150-94f5-4952-a869-5d75694e53e2</ClientID>
<ItemCategory>
<ClientID>f9f5af7b-8686-4f6c-867f-cbdf1e905764</ClientID>
<ItemCategoryID>03258934-0683-4477-abc9-a2160b31e6a8</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>4425e502-daaa-4e98-8bf4-eb83758052a6</ClientID>
<ItemClassificationID>467f69d5-186d-43be-8a5d-a42f00bdc4d8</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>08c33933-ade9-4237-aeca-932f87b673df</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>b4ca8150-94f5-4952-a869-5d75694e53e2</ClientID>
<ItemCategory>
<ClientID>f9f5af7b-8686-4f6c-867f-cbdf1e905764</ClientID>
<ItemCategoryID>03258934-0683-4477-abc9-a2160b31e6a8</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>4425e502-daaa-4e98-8bf4-eb83758052a6</ClientID>
<ItemClassificationID>467f69d5-186d-43be-8a5d-a42f00bdc4d8</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>08c33933-ade9-4237-aeca-932f87b673df</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>