# Hosting site page translate

`POST /hosting/sites/{id}/pages/{page}/translations` · Rivier · hosting

Make a draft of the page in another language of the site (same blocks, prose translated, hidden until a person approves). For a language that exists it refreshes that translation.

- Scope: hosting:write
- Mcp: rivier_site_translate_page
- Graphql: Mutation.hostingSitePageTranslate
- Sdk: hosting.sitePage.translate
- Cli: hosting site page translate

## Parameters

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

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "minLength": 2,
      "maxLength": 20
    }
  },
  "required": [
    "locale"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: 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 POST 'https://api.rivier.ai/hosting/sites/{id}/pages/{page}/translations' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "locale": "string"
}'
```
