# set_picture_version

Give a sales page picture its own version in a language, from a file the creator gave you.

`PUT /v1/guides/{productId}/languages/{lang}/pictures/{mediaId}` · MCP tool `set_picture_version` · scope `write` · beta · since 2026-11-26.4

Only when the creator gives you the file: the picture made again in the language. Never make a picture yourself: do not generate, redraw, edit or translate one, and take none from the web. A version comes only from a file the creator gives you. Upload the creator's file with target=blob (the upload endpoint, whoami.endpoints.upload), then pass the storageId, width and height it returns here within 10 minutes, with the mediaId of the picture it stands in for (list_language_pictures). It is checked like every sales page picture, and its smaller copies are made right after. A picture that already has a version in the language gets this one in its place, and the earlier file is deleted. A version sits outside the draft, like a translation: no save_guide_changes and no publish_changes, and the write scope is enough whether the language is live or not. While the language is not live (live false), the version shows to nobody but the creator, on the studio's Languages page (studioUrl). Once the language is live, it shows to buyers at once, on every sales page of the guide that shows the picture, so set one only when the creator asks. The page keeps its crop and position for the picture: ask the creator for a file in the shape of the original (its width and height in list_language_pictures). Refused with invalid_request, and nothing changed, for a language the guide is not offered in (add_language first), a photo of a spot or a chapter, a picture none of the guide's sales pages shows (one list_language_pictures does not return), an upload older than 10 minutes and a file that is in use elsewhere (upload the picture again); with not_found for a picture of another guide.

## 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).
- `mediaId` (string, required): The picture the version stands in for: mediaId from list_language_pictures, a picture of the guide's sales pages.
- `productId` (string, required): Id of the guide (a product of type map). From list_guides or create_guide.

## Body parameters

- `height` (number, required): The height the upload returned, in px.
- `storageId` (string, required): The version's file: storageId from an upload with target=blob, made in the last 10 minutes and used nowhere else.
- `width` (number, required): The width the upload returned, in px.

## Returns

200.

- `ok` (boolean, required): Always true: the write went through. Always `true`.
- `productId` (string, required): The guide's id.
- `lang` (string, required): The language: en (English), de (German), fr (French) or it (Italian).
- `live` (boolean, required): true when buyers can read the guide's sales pages in this language: the version then shows to them already. A language goes live with set_language_live or in the studio.
- `picture` (LanguagePicture, required): The picture with its version in this language, as list_language_pictures returns it.
  Fields of LanguagePicture: https://developers.sceniq.earth/fields/language-picture.md
- `studioUrl` (string, required): This language's sales pages on the guide's Languages page in the studio, where the creator sees each picture beside its version, replaces one or takes it away.

## Examples

### Set the creator's German screenshot as the map picture's German version

```bash
curl -X PUT "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/languages/de/pictures/kg7b4n6m8q0w2e4r6t8y0v2j4p6p8a0s" \
  -H "Authorization: Bearer $SCENIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "storageId": "kg2f3h9k5n1q7t3w9z5c1f7j3m9q5t1w",
  "width": 1638,
  "height": 2048
}'
```

MCP `tools/call`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_picture_version",
    "arguments": {
      "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
      "lang": "de",
      "mediaId": "kg7b4n6m8q0w2e4r6t8y0v2j4p6p8a0s",
      "storageId": "kg2f3h9k5n1q7t3w9z5c1f7j3m9q5t1w",
      "width": 1638,
      "height": 2048
    }
  }
}
```

Response 200:

```json
{
  "ok": true,
  "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
  "lang": "de",
  "live": false,
  "picture": {
    "mediaId": "kg7b4n6m8q0w2e4r6t8y0v2j4p6p8a0s",
    "places": [
      {
        "listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
        "page": "Main page",
        "place": "Hero, picture 3"
      },
      {
        "listingId": "kr7w1e3r5t7y9v1j3p5p7a9s1d3f5g7h",
        "page": "Main page",
        "place": "Pitch, box 1"
      }
    ],
    "url": "https://quiet-heron-512.convex.cloud/api/storage/guide-map-yellowstone.webp",
    "width": 1638,
    "height": 2048,
    "version": {
      "url": "https://quiet-heron-512.convex.cloud/api/storage/kg2f3h9k5n1q7t3w9z5c1f7j3m9q5t1w",
      "width": 1638,
      "height": 2048,
      "updatedAt": 1790673240000
    }
  },
  "studioUrl": "https://creators.sceniq.earth/products/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2?tab=languages&lang=de&part=sales"
}
```

## 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.
- `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_picture_version
