POST pricebook
Adds a category.
Request Information
URI
https://mtm-api.xaitcpq.net/pricebook
URI Parameters
None.
Body Parameters
Price Book options.
UpdateProductCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Code | string |
None. |
|
| Colour | string |
None. |
|
| Graphic | globally unique identifier |
None. |
|
| Note | globally unique identifier |
None. |
|
| Parent | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Code": "sample string 2",
"Colour": "sample string 3",
"Graphic": "cfcef0bf-7d1c-4163-9a43-7861c29927f4",
"Note": "48d08c59-689a-4b80-a9d0-19dbb40bebd4",
"Parent": "91638345-d975-44d3-bc33-03121865893a"
}
text/html
Sample:
{"Name":"sample string 1","Code":"sample string 2","Colour":"sample string 3","Graphic":"cfcef0bf-7d1c-4163-9a43-7861c29927f4","Note":"48d08c59-689a-4b80-a9d0-19dbb40bebd4","Parent":"91638345-d975-44d3-bc33-03121865893a"}
application/xml, text/xml
Sample:
<UpdateProductCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.ConfigurationModels"> <Code>sample string 2</Code> <Colour>sample string 3</Colour> <Graphic>cfcef0bf-7d1c-4163-9a43-7861c29927f4</Graphic> <Name>sample string 1</Name> <Note>48d08c59-689a-4b80-a9d0-19dbb40bebd4</Note> <Parent>91638345-d975-44d3-bc33-03121865893a</Parent> </UpdateProductCategory>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
True if it succeeds, false if it fails.
booleanResponse Formats
application/json, text/json, text/html
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>