POST
/
cookie-categories
curl --request POST \
  --url https://cookiechimp.com/api/v1/cookie-categories \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --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

X-API-KEY
string
headerrequired

Body

application/json
name
string
required

Name of the cookie category that is displayed to users

description
string
required

Description of the cookie category that is displayed to users

required
boolean
required

Whether the cookie category is required for the website to function

Response

201 - application/json
name
string
required

Name of the cookie category that is displayed to users

description
string
required

Description of the cookie category that is displayed to users

required
boolean
required

Whether the cookie category is required for the website to function

id
string

Unique identifier for the cookie category

created_at
string

Date and time when the cookie category was created

updated_at
string

Date and time when the cookie category was last updated