# Translate an article

Saves the article's translation into a language, starting a draft when there is none. Readers of that language keep reading the published translation, or the original, until it is published. Returns the translation as it now is, with its new lock_version.

```http
PATCH https://trydimmi.com/api/v1/articles/{article}/translations/{locale}
```

## Authorization

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

## Path parameters

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

## Body

- `body_markdown` (string): The full translated article in Markdown, at most 256 KB; it replaces the old text.
- `description` (string): The translated summary shown under the title, at most 300 characters.
- `lock_version` (integer): The lock_version the translation had when you read it; zero skips the check.
- `slug` (string): The translated address; made from the title when a translation starts without one.
- `title` (string): The translated title, 1 to 150 characters. Needed to start a translation.

## Response 200 (OK)

- `data` (object, required)
  - `article_id` (string, required): The id of the article translated, such as art_abc123.
  - `body_markdown` (string): The translation's working copy in Markdown. Left out of lists.
  - `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 translated summary shown under the title. Null when it has none.
  - `has_unpublished_changes` (boolean, required): True when the working copy differs from the version readers of the language see.
  - `locale` (string, required): The language of the translation, as a code such as fr or pt-BR.
  - `lock_version` (integer, required): Goes up with every save; send it back to save over this version only.
  - `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 source was published with other words since the translation caught up.
  - `published_at` (string | null, required): When the translation was last published. Null while it never was.
  - `slug` (string, required): The translation's address in its language, such as remboursements.
  - `status` (string, required): draft until the translation is published, then published.
  - `title` (string, required): The translated title.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `word_count` (integer, required): The number of words in the translation's working copy.

## 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/articles/{article}/translations/{locale}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "body_markdown": "<string>",
  "description": "<string>",
  "lock_version": 123,
  "slug": "<string>",
  "title": "<string>"
}'
```

## Example response

```json
{
  "data": {
    "article_id": "<string>",
    "body_markdown": "<string>",
    "created_at": "2026-11-01T09:30:00Z",
    "description": "<string>",
    "has_unpublished_changes": true,
    "locale": "<string>",
    "lock_version": 123,
    "object": "<string>",
    "outdated": true,
    "published_at": "2026-11-01T09:30:00Z",
    "slug": "<string>",
    "status": "<string>",
    "title": "<string>",
    "updated_at": "2026-11-01T09:30:00Z",
    "word_count": 123
  }
}
```

---

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