POST api/v1/ProductCategories

Creates new Product Categories.

Request Information

URI Parameters

None.

Body Parameters

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: 0–2147483647

Sort

integer

Range: 0–2147483647

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": 1,
    "success": false,
    "id": 1,
    "code": "",
    "errors": [
      ""
    ]
  }
]