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": "1237357f-3ca8-4836-9155-ad5fabfc4c1e",
"ItemCategoryID": "0eb2d01c-209c-4cc0-bd81-77d1e4cfc9eb",
"ItemClassificationID": "5a587a78-f153-4ee6-86e2-bca9c50fefdf"
}
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>1237357f-3ca8-4836-9155-ad5fabfc4c1e</ClientID> <ItemCategoryID>0eb2d01c-209c-4cc0-bd81-77d1e4cfc9eb</ItemCategoryID> <ItemClassificationID>5a587a78-f153-4ee6-86e2-bca9c50fefdf</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": "847d7996-e3c3-46b6-84fd-48d577ecc3fe",
"ItemID": "fab9bbad-15ae-4c64-9eb4-d1f963c77aea",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "b6700a67-dea3-4b71-a83e-601685285a8a",
"ClientID": "63349f37-e18f-45a0-856e-d25f6c611d1c",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "b09f1d8f-ce9d-48da-8c19-acc2c9581e1c",
"ClientID": "a3181f47-f1c0-4738-9920-47d52ff7409e",
"Name": "sample string 3"
}
},
{
"ClientID": "847d7996-e3c3-46b6-84fd-48d577ecc3fe",
"ItemID": "fab9bbad-15ae-4c64-9eb4-d1f963c77aea",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "b6700a67-dea3-4b71-a83e-601685285a8a",
"ClientID": "63349f37-e18f-45a0-856e-d25f6c611d1c",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "b09f1d8f-ce9d-48da-8c19-acc2c9581e1c",
"ClientID": "a3181f47-f1c0-4738-9920-47d52ff7409e",
"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>847d7996-e3c3-46b6-84fd-48d577ecc3fe</ClientID>
<ItemCategory>
<ClientID>63349f37-e18f-45a0-856e-d25f6c611d1c</ClientID>
<ItemCategoryID>b6700a67-dea3-4b71-a83e-601685285a8a</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>a3181f47-f1c0-4738-9920-47d52ff7409e</ClientID>
<ItemClassificationID>b09f1d8f-ce9d-48da-8c19-acc2c9581e1c</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>fab9bbad-15ae-4c64-9eb4-d1f963c77aea</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>847d7996-e3c3-46b6-84fd-48d577ecc3fe</ClientID>
<ItemCategory>
<ClientID>63349f37-e18f-45a0-856e-d25f6c611d1c</ClientID>
<ItemCategoryID>b6700a67-dea3-4b71-a83e-601685285a8a</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>a3181f47-f1c0-4738-9920-47d52ff7409e</ClientID>
<ItemClassificationID>b09f1d8f-ce9d-48da-8c19-acc2c9581e1c</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>fab9bbad-15ae-4c64-9eb4-d1f963c77aea</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>