# Set the project's languages. The main language is always offered

`PUT /language/settings` · Rivier · language

Set the project's languages. The main language is always offered.

- Scope: language:admin
- Mcp: rivier_language_settings_set
- Graphql: Mutation.languageSettingsSet
- Sdk: language.settings.set
- Cli: language settings set

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "primary": {
      "type": "string",
      "minLength": 2,
      "maxLength": 12
    },
    "offered": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 12
      },
      "maxItems": 60
    },
    "translateIncoming": {
      "type": "boolean",
      "default": true
    },
    "defaultGlossaryId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "required": [
    "primary",
    "offered"
  ],
  "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 PUT 'https://api.rivier.ai/language/settings' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "primary": "string",
  "offered": [
    "string"
  ]
}'
```
