# Change a changelog label

```http
PATCH https://trydimmi.com/api/v1/changelog-labels/{label}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `changelog:write`.

## Path parameters

- `label` (string, required): Id of the changelog label, starting with cll_, such as cll_01jx2m8k4t. Find it with GET /help-centers/{help_center}/changelog-labels.

## Body

- `color` (string): Hex color such as #22c55e.
- `name` (string): The name of the changelog label, 1 to 40 characters, unique in the changelog, such as Improvement.
- `position` (integer): Where the label sits in the list, counting from 0, lowest first, such as 2.

## Response 200 (OK)

- `data` (object, required)
  - `color` (string, required): The label's color as a six-digit hex code, such as #3b82f6.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `name` (string, required): The label's name, 1 to 40 characters, such as Improvement.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `position` (integer, required): The label's place in the changelog's label order; lower comes first.
  - `slug` (string, required): The label's URL name: lowercase letters, digits and hyphens, such as bug-fixes. Unique within the help center.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/changelog-labels/{label}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "color": "<string>",
  "name": "<string>",
  "position": 123
}'
```

## Example response

```json
{
  "data": {
    "color": "<string>",
    "id": "<string>",
    "name": "<string>",
    "object": "<string>",
    "position": 123,
    "slug": "<string>"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
