Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

POST /v1/commerce/categories

POST/v1/commerce/categories
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Request body
requiredapplication/json
activebooleanrequired
namestringrequired
organization_idstringrequired
parent_idstring
slugstring
sort_orderinteger<int32>
Responses
201Created
activebooleanrequired
idstringrequired
namestringrequired
organization_idstring
parent_idstring
slugstringrequired
sort_orderinteger<int32>required
defaultError
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/commerce/categories" \
  -H "Content-Type: application/json" \
  -d '{
  "active": true,
  "name": "string",
  "organization_id": "string",
  "parent_id": "string",
  "slug": "string",
  "sort_order": 0
}'
Response
{
  "active": true,
  "id": "string",
  "name": "string",
  "organization_id": "string",
  "parent_id": "string",
  "slug": "string",
  "sort_order": 0
}