POST
/
categories
curl --request POST \
  --url https://cookiechimp.com/api/v1/categories \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "required": true
}'
{
  "id": "essential",
  "name": "Essential",
  "description": "Cookies essential for website functionality",
  "required": true,
  "created_at": "2023-01-01T00:00:00Z",
  "updated_at": "2023-01-02T00:00:00Z"
}

Authorizations

Authorization
string
header
required

Body

application/json
Category to create

The body is of type object.

Response

201
application/json
Created category

The response is of type object.