# A person writes or corrects one translated string

`PATCH /hosting/sites/{id}/pages/{page}/translations/{locale}/units` · Rivier · hosting

A person writes or corrects one translated string; it is kept as a human edit when the original changes.

- Scope: hosting:write
- Graphql: Mutation.hostingSitePageEditTranslationUnit
- Sdk: hosting.sitePage.editTranslationUnit
- Cli: hosting site page edit translation unit

## Parameters

- `id` (path, required), string
- `page` (path, required), string
- `locale` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "minLength": 3,
      "maxLength": 300
    },
    "text": {
      "type": "string",
      "maxLength": 4000
    }
  },
  "required": [
    "key",
    "text"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X PATCH 'https://api.rivier.ai/hosting/sites/{id}/pages/{page}/translations/{locale}/units' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "string",
  "text": "string"
}'
```
