language_create
Add a new language to a Voog site by specifying its ISO 639-1 code and display title. Optionally include region, per-language site title, and duplicate content from another language.
Instructions
Add a new language to the Voog site (POST /languages). Required: code (ISO 639-1 two-letter), title. Optional: region (ISO 3166-1 alpha-2), site_title, site_header, default_language, published, content_origin_id (duplicate content from another language). Body is FLAT — no envelope wrapper.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| code | Yes | ISO 639-1 two-letter code (e.g. 'et', 'en'). Voog stores region separately — pass 'region' for variants like en-GB, NOT 'en-GB' here. | |
| title | Yes | Language name shown in the language menu | |
| region | No | ISO 3166-1 alpha-2 region code (optional) | |
| site_title | No | Per-language HTML title (optional) | |
| site_header | No | Per-language content header (optional) | |
| default_language | No | Make this the site's default language | |
| published | No | Whether the language is publicly visible (default true) | |
| content_origin_id | No | Duplicate content from this existing language id |