POST Api/Item
Request Information
URI Parameters
None.
Body Parameters
ItemParameterName | 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": "57e76668-4a57-4743-8d74-f02e45e169da", "ItemCategoryID": "61422f93-52c9-46af-8403-60c8f1f1a911", "ItemClassificationID": "9cf2960e-fac6-499e-adc3-cf19b7ff9fcf" }
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>57e76668-4a57-4743-8d74-f02e45e169da</ClientID> <ItemCategoryID>61422f93-52c9-46af-8403-60c8f1f1a911</ItemCategoryID> <ItemClassificationID>9cf2960e-fac6-499e-adc3-cf19b7ff9fcf</ItemClassificationID> </ItemParameter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ItemName | 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": "e5865bed-a237-4e08-9660-74335912c937", "ItemID": "92575a1f-2c3d-4ef7-b844-5aa3e7a0cbc4", "Name": "sample string 3", "Price": 4.1, "ItemCategory": { "ItemCategoryID": "7c3675af-d870-4a7a-8040-1002d92ca58d", "ClientID": "a65e26ab-dce6-415d-b954-58d49c0d7a04", "Name": "sample string 3" }, "ItemClassification": { "ItemClassificationID": "f525430a-b392-47c4-aa55-b96554796e60", "ClientID": "66cec115-0bc2-4967-ba15-d9106e98adc5", "Name": "sample string 3" } }, { "ClientID": "e5865bed-a237-4e08-9660-74335912c937", "ItemID": "92575a1f-2c3d-4ef7-b844-5aa3e7a0cbc4", "Name": "sample string 3", "Price": 4.1, "ItemCategory": { "ItemCategoryID": "7c3675af-d870-4a7a-8040-1002d92ca58d", "ClientID": "a65e26ab-dce6-415d-b954-58d49c0d7a04", "Name": "sample string 3" }, "ItemClassification": { "ItemClassificationID": "f525430a-b392-47c4-aa55-b96554796e60", "ClientID": "66cec115-0bc2-4967-ba15-d9106e98adc5", "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>e5865bed-a237-4e08-9660-74335912c937</ClientID> <ItemCategory> <ClientID>a65e26ab-dce6-415d-b954-58d49c0d7a04</ClientID> <ItemCategoryID>7c3675af-d870-4a7a-8040-1002d92ca58d</ItemCategoryID> <Name>sample string 3</Name> </ItemCategory> <ItemClassification> <ClientID>66cec115-0bc2-4967-ba15-d9106e98adc5</ClientID> <ItemClassificationID>f525430a-b392-47c4-aa55-b96554796e60</ItemClassificationID> <Name>sample string 3</Name> </ItemClassification> <ItemID>92575a1f-2c3d-4ef7-b844-5aa3e7a0cbc4</ItemID> <Name>sample string 3</Name> <Price>4.1</Price> </Item> <Item> <ClientID>e5865bed-a237-4e08-9660-74335912c937</ClientID> <ItemCategory> <ClientID>a65e26ab-dce6-415d-b954-58d49c0d7a04</ClientID> <ItemCategoryID>7c3675af-d870-4a7a-8040-1002d92ca58d</ItemCategoryID> <Name>sample string 3</Name> </ItemCategory> <ItemClassification> <ClientID>66cec115-0bc2-4967-ba15-d9106e98adc5</ClientID> <ItemClassificationID>f525430a-b392-47c4-aa55-b96554796e60</ItemClassificationID> <Name>sample string 3</Name> </ItemClassification> <ItemID>92575a1f-2c3d-4ef7-b844-5aa3e7a0cbc4</ItemID> <Name>sample string 3</Name> <Price>4.1</Price> </Item> </ArrayOfItem>