POST v1/ProductCategories
Creates new Product Categories.
Request Information
URI Parameters
None.
Body Parameters
Collection of CreateProductCategoryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
Name |
string |
Required Max length: 50 |
|
Description |
string |
Max length: 250 |
|
ParentId |
Parent category Id. 0 for top level. Default is 0. |
integer |
Range: inclusive between 0 and 2147483647 |
Sort |
integer |
Range: inclusive between 0 and 2147483647 |
Request Formats
application/json, text/json
Sample:
[
{
"name": "sample string 1",
"description": "sample string 2",
"parentId": 3,
"sort": 4
},
{
"name": "sample string 1",
"description": "sample string 2",
"parentId": 3,
"sort": 4
}
]
Response Information
Resource Description
Collection of BatchResultItem| Name | Description | Type | Additional information |
|---|---|---|---|
Index |
The index at which the record was positioned in an insert or update. |
integer |
None. |
Success |
True if the record was successfully inserted or updated. |
boolean |
None. |
Id |
The record Id. |
integer |
None. |
Code |
The record code. |
string |
None. |
Errors |
A list of errors if the insert or update fails. |
Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"index": 0,
"success": true,
"id": 1,
"code": "SALE4-28",
"errors": []
},
{
"index": 1,
"success": true,
"id": 2,
"code": "SALE5-29",
"errors": []
}
]
