API Reference
Reference for the API
Update category by ID
cURL
curl --request PUT \ --url https://cookiechimp.com/api/v1/categories/{id} \ --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" }
ID of the resource
Category to update
The body is of type object.
object
Updated category
The response is of type object.
Was this page helpful?