Skip to main content
POST
Create category (Admin only)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"Rice & Grains"

slug
string
required
Example:

"rice-grains"

parentId
string | null

Must be the id of another category already created, or null/omitted for a top-level category.

Example:

null

iconSvg
object | null
Example:

"<svg viewBox=\"0 0 24 24\"><path d=\"M4 4h16v16H4z\"/></svg>"

Response

201 - undefined