API Reference
Reference for the API
Create a new category
cURL
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.
object
Created category
The response is of type object.
Was this page helpful?