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": "e90e43d4-bfa6-441d-bf87-7f6732d7ec89",
"ItemCategoryID": "3be98671-3223-41d6-b339-8e9c08f112e4",
"ItemClassificationID": "7ce92c78-3662-476f-9a68-5aedbde9fc3e"
}
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>e90e43d4-bfa6-441d-bf87-7f6732d7ec89</ClientID> <ItemCategoryID>3be98671-3223-41d6-b339-8e9c08f112e4</ItemCategoryID> <ItemClassificationID>7ce92c78-3662-476f-9a68-5aedbde9fc3e</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": "fa9d2dca-2cfc-4686-a0c3-e9c76c9ae263",
"ItemID": "6a001b1b-fe94-42f6-8b63-6164c0e6a1dd",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "76167daf-4ff7-4dee-b82b-a579c14130bd",
"ClientID": "b521fa19-c349-441d-b97a-7740d203c302",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "7e05b5ba-6e19-4e91-8154-2cb636c67137",
"ClientID": "c7213e57-7671-49b2-ad8b-396c60202fa7",
"Name": "sample string 3"
}
},
{
"ClientID": "fa9d2dca-2cfc-4686-a0c3-e9c76c9ae263",
"ItemID": "6a001b1b-fe94-42f6-8b63-6164c0e6a1dd",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "76167daf-4ff7-4dee-b82b-a579c14130bd",
"ClientID": "b521fa19-c349-441d-b97a-7740d203c302",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "7e05b5ba-6e19-4e91-8154-2cb636c67137",
"ClientID": "c7213e57-7671-49b2-ad8b-396c60202fa7",
"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>fa9d2dca-2cfc-4686-a0c3-e9c76c9ae263</ClientID>
<ItemCategory>
<ClientID>b521fa19-c349-441d-b97a-7740d203c302</ClientID>
<ItemCategoryID>76167daf-4ff7-4dee-b82b-a579c14130bd</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>c7213e57-7671-49b2-ad8b-396c60202fa7</ClientID>
<ItemClassificationID>7e05b5ba-6e19-4e91-8154-2cb636c67137</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>6a001b1b-fe94-42f6-8b63-6164c0e6a1dd</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>fa9d2dca-2cfc-4686-a0c3-e9c76c9ae263</ClientID>
<ItemCategory>
<ClientID>b521fa19-c349-441d-b97a-7740d203c302</ClientID>
<ItemCategoryID>76167daf-4ff7-4dee-b82b-a579c14130bd</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>c7213e57-7671-49b2-ad8b-396c60202fa7</ClientID>
<ItemClassificationID>7e05b5ba-6e19-4e91-8154-2cb636c67137</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>6a001b1b-fe94-42f6-8b63-6164c0e6a1dd</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>