Update a language
patch
https://api.flactrum.com/v1/languages/{language}
| Required scope | languages.write |
| Success status | 200 |
| Returns | One Language object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| language * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| code * | string | ISO code, optionally with a region: en, en-GB. |
| name * | string | — |
| is_default | boolean | Only one language is the default; marking a new one clears the old. |
| is_active | boolean | — |
| sort_order | integer | — |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| code | string | — |
| name | string | — |
| is_default | boolean | The default language stores its text on the record itself, not as a translation. |
| is_active | boolean | — |
| sort_order | integer | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X PATCH 'https://api.flactrum.com/v1/languages/01m43sk7fr1981v4cs912rt96s' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"sort_order": 5
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43sk7fr1981v4cs912rt96s",
"code": "en",
"name": "English",
"is_default": false,
"is_active": true,
"sort_order": 5,
"created_at": "2026-10-04T15:47:50+00:00",
"updated_at": "2026-10-04T15:47:50+00:00"
}
}