PUT
/
categories
/
{id}
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"
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

ID of the resource

Body

application/json
Category to update

The body is of type object.

Response

200
application/json
Updated category

The response is of type object.