Skip to main content
POST
Create category

Authorizations

Authorization
string
header
required

An API token from Sign in, sent as Authorization: Bearer <token>. Tokens last 30 days.

Body

application/json
name
string
required

Category name (max 255 characters). Must not be greater than 255 characters.

Example:

"Electronics"

parent_id
integer | null

Parent category ID for nested categories. The id of an existing record in the products_categories table.

Example:

1

Response

Created