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": "adf9417a-bfa2-4289-9231-433ff506c839",
"ItemCategoryID": "af43e85b-20df-4dc7-889a-f0dde6936407",
"ItemClassificationID": "71fef644-3b96-4305-9db8-ac47785acfc0"
}
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>adf9417a-bfa2-4289-9231-433ff506c839</ClientID> <ItemCategoryID>af43e85b-20df-4dc7-889a-f0dde6936407</ItemCategoryID> <ItemClassificationID>71fef644-3b96-4305-9db8-ac47785acfc0</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": "a7538379-8efc-41d9-9002-3656c048c79f",
"ItemID": "3bf65adc-c1f8-4e8f-8c5d-6760e3c3fc5a",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "b8c0fdc2-bac0-46eb-aa42-ecfe3dc19f01",
"ClientID": "5c0c2120-702c-43ef-a67c-c54eff94bbcf",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "0e693c77-dcf4-47e3-97ef-ba8a90b4b173",
"ClientID": "9db66cd4-d2a3-4ece-be38-f31dde15ddfd",
"Name": "sample string 3"
}
},
{
"ClientID": "a7538379-8efc-41d9-9002-3656c048c79f",
"ItemID": "3bf65adc-c1f8-4e8f-8c5d-6760e3c3fc5a",
"Name": "sample string 3",
"Price": 4.1,
"ItemCategory": {
"ItemCategoryID": "b8c0fdc2-bac0-46eb-aa42-ecfe3dc19f01",
"ClientID": "5c0c2120-702c-43ef-a67c-c54eff94bbcf",
"Name": "sample string 3"
},
"ItemClassification": {
"ItemClassificationID": "0e693c77-dcf4-47e3-97ef-ba8a90b4b173",
"ClientID": "9db66cd4-d2a3-4ece-be38-f31dde15ddfd",
"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>a7538379-8efc-41d9-9002-3656c048c79f</ClientID>
<ItemCategory>
<ClientID>5c0c2120-702c-43ef-a67c-c54eff94bbcf</ClientID>
<ItemCategoryID>b8c0fdc2-bac0-46eb-aa42-ecfe3dc19f01</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>9db66cd4-d2a3-4ece-be38-f31dde15ddfd</ClientID>
<ItemClassificationID>0e693c77-dcf4-47e3-97ef-ba8a90b4b173</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>3bf65adc-c1f8-4e8f-8c5d-6760e3c3fc5a</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
<Item>
<ClientID>a7538379-8efc-41d9-9002-3656c048c79f</ClientID>
<ItemCategory>
<ClientID>5c0c2120-702c-43ef-a67c-c54eff94bbcf</ClientID>
<ItemCategoryID>b8c0fdc2-bac0-46eb-aa42-ecfe3dc19f01</ItemCategoryID>
<Name>sample string 3</Name>
</ItemCategory>
<ItemClassification>
<ClientID>9db66cd4-d2a3-4ece-be38-f31dde15ddfd</ClientID>
<ItemClassificationID>0e693c77-dcf4-47e3-97ef-ba8a90b4b173</ItemClassificationID>
<Name>sample string 3</Name>
</ItemClassification>
<ItemID>3bf65adc-c1f8-4e8f-8c5d-6760e3c3fc5a</ItemID>
<Name>sample string 3</Name>
<Price>4.1</Price>
</Item>
</ArrayOfItem>