Categories

Create a category

Creates a new cookie category for a site. The slug is auto-generated from the name.

post/sites/{id}/categories

Request

  • Base URL: http://localhost:3001/api/v1
  • URL: http://localhost:3001/api/v1/sites/{id}/categories
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Site ID

Example:550e8400-e29b-41d4-a716-446655440000

Request body

namestring required
descriptionstring
nameTranslationsobject
descriptionTranslationsobject

Response

Created category

idstring uuid required
siteIdstring uuid required
slugstring required
namestring required
descriptionstring required
isRequiredboolean required
isDefaultboolean required
sortOrdernumber required
createdAtstring required
updatedAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.