Add a language
post
https://api.flactrum.com/v1/languages
| Required scope | languages.write |
| Success status | 201 |
| Returns | One Language object |
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
No recorded example yet.