POST Service/Create
Request Information
URI Parameters
None.
Body Parameters
ItemModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Description | string |
None. |
|
| UnitPrice | decimal number |
None. |
|
| PurchaseCost | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Description": "sample string 2",
"UnitPrice": 3.0,
"PurchaseCost": 4.0
}
application/xml, text/xml
Sample:
<ItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QBAPI.Models"> <Description>sample string 2</Description> <Name>sample string 1</Name> <PurchaseCost>4</PurchaseCost> <UnitPrice>3</UnitPrice> </ItemModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.