# Translate a collection

Saves the collection's name, slug and description in a language the help center offers. It shows to readers of that language at once. Returns the collection's translation.

```http
PATCH https://trydimmi.com/api/v1/collections/{collection}/translations/{locale}
```

## Authorization

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

## Path parameters

- `collection` (string, required): Id of the help center collection, starting with col_, such as col_01jx2m8k4t. Find it with GET /help-centers/{help_center}/collections.
- `locale` (string, required): A language the help center offers besides its default, as a code such as fr or pt-BR.

## Body

- `description` (string): The translated description, at most 300 characters.
- `name` (string, required): The translated name, 1 to 80 characters.
- `slug` (string): The translated address; made from the name when left out.

## Response 200 (OK)

- `data` (object, required)
  - `collection_id` (string, required): The id of the collection translated, such as col_abc123.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `description` (string | null, required): The collection's description in that language. Null when it has none.
  - `locale` (string, required): The language of the translation, as a code such as fr.
  - `name` (string, required): The collection's name in that language.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `outdated` (boolean, required): True when the collection's default name or description changed since.
  - `slug` (string, required): The collection's address in that language.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

## 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/collections/{collection}/translations/{locale}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "name": "<string>",
  "slug": "<string>"
}'
```

## Example response

```json
{
  "data": {
    "collection_id": "<string>",
    "created_at": "2026-11-01T09:30:00Z",
    "description": "<string>",
    "locale": "<string>",
    "name": "<string>",
    "object": "<string>",
    "outdated": true,
    "slug": "<string>",
    "updated_at": "2026-11-01T09:30:00Z"
  }
}
```

---

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