Create a new category
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"
}
Category to create
The body is of type object
.
Created category
The response is of type object
.
Was this page helpful?
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"
}