# set_language_live

Turn a language of a guide live for buyers, or off.

`PATCH /v1/guides/{productId}/languages/{lang}` · MCP tool `set_language_live` · scope `write` · beta · since 2026-11-26.6

Only when the creator asks you to make the language live, or to turn it off. live true puts the guide and its sales pages in front of buyers in this language at once: a reader whose app or browser is in it reads the guide in it, and every sales page is served in it at its own address. A text without a translation reads as the creator wrote it, so finish the translation first (remaining 0 in list_untranslated_texts) unless the creator says otherwise. live false takes the language away from buyers, who read the guide as written again, and keeps every translation and picture version. Like a translation, the switch sits outside the draft: no save_guide_changes and no publish_changes, and the write scope is enough. Setting the state a language already has changes nothing, so the call is safe to repeat. Returns the guide's languages as list_languages does. Refused with invalid_request for a language the guide is not offered in (add_language first), and with conflict for live true on a language that has no translation yet. Removing a language, which deletes its translations, stays with the creator on the studio's Languages page.

## Path parameters

- `lang` (string, required): The language to translate into: en (English), de (German), fr (French) or it (Italian), one the guide is offered in (list_languages).
- `productId` (string, required): Id of the guide (a product of type map). From list_guides or create_guide.

## Body parameters

- `live` (boolean, required): true makes the language live for buyers, false turns it off.

## Returns

200: GuideLanguages.

- `productId` (string, required): The guide's id.
- `original` (string, required): The language the guide is written in, as a two-letter code (update_guide language). A guide is never offered as a translation into it.
- `total` (number, required): How many texts the guide has to translate: every text of the draft and of its sales pages, each once however often it is used. Archived spots, chapters, collections, hikes and properties are left out.
- `languages` (array of objects, required): The languages the guide is offered in besides the one it is written in, English first, then German, French and Italian. Empty until one is added.
  - `lang` (string, required): The language: en (English), de (German), fr (French) or it (Italian).
  - `live` (boolean, required): true when buyers can read the guide and its sales pages in this language. set_language_live turns it on or off, and so does the creator with Live on the studio's Languages page. While it is true, every translation saved shows to buyers at once.
  - `translated` (number, required): How many of the guide's texts have a translation in this language. Below total, texts are left: list_untranslated_texts returns them. It falls when the creator changes a text, which then has no translation until it is translated again.
  - `updatedAt` (number, required): When the language or one of its translations last changed (Unix time in milliseconds).
- `canAdd` (array of strings, required): The languages add_language can still add: en, de, fr and it without the one the guide is written in and the ones it has.
- `studioUrl` (string, required): The guide's Languages page in the studio, where the creator reviews the translations, turns Live on or off and removes a language.

## Examples

### The creator asked for German to go live: buyers read the guide and its sales pages in German

```bash
curl -X PATCH "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/languages/de" \
  -H "Authorization: Bearer $SCENIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "live": true
}'
```

MCP `tools/call`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_language_live",
    "arguments": {
      "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
      "lang": "de",
      "live": true
    }
  }
}
```

Response 200:

```json
{
  "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
  "original": "en",
  "total": 212,
  "languages": [
    {
      "lang": "de",
      "live": true,
      "translated": 212,
      "updatedAt": 1790673240000
    }
  ],
  "canAdd": [
    "fr",
    "it"
  ],
  "studioUrl": "https://creators.sceniq.earth/products/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2?tab=languages"
}
```

### Turn German off again: its translations stay

```bash
curl -X PATCH "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/languages/de" \
  -H "Authorization: Bearer $SCENIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "live": false
}'
```

MCP `tools/call`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_language_live",
    "arguments": {
      "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
      "lang": "de",
      "live": false
    }
  }
}
```

Response 200:

```json
{
  "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
  "original": "en",
  "total": 212,
  "languages": [
    {
      "lang": "de",
      "live": false,
      "translated": 212,
      "updatedAt": 1790673240000
    }
  ],
  "canAdd": [
    "fr",
    "it"
  ],
  "studioUrl": "https://creators.sceniq.earth/products/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2?tab=languages"
}
```

## Errors

- `invalid_argument` (400): A required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).
- `invalid_request` (400): A writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.
- `unauthenticated` (401): The request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
- `invalid_api_key` (401): The key is unknown, revoked or expired.
- `api_scope_required` (403): A read-only key called a write operation, or a key without the publish option called publish_changes.
- `forbidden` (403): The key belongs to a creator account that is no longer active.
- `not_found` (404): The id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
- `conflict` (409): The request clashes with the row's current state. The message says what to change.
- `payload_too_large` (413): A JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
- `rate_limited` (429): Over a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
- `internal_error` (500): An unexpected failure. The message is hidden on purpose.

Reference: https://developers.sceniq.earth/reference/set_language_live
