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_versionScope: writeBetaSince 2026-11-26.4
Markdown

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.

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
}'

Path parameters

  • langstringrequired

    The language to translate into: en (English), de (German), fr (French) or it (Italian), one the guide is offered in (list_languages).

  • mediaIdstring · photo idrequired

    The picture the version stands in for: mediaId from list_language_pictures, a picture of the guide's sales pages.

  • productIdstring · guide idrequired

    Id of the guide (a product of type map). From list_guides or create_guide.

Body parameters

  • heightnumberrequired

    The height the upload returned, in px.

  • storageIdstring · stored file idrequired

    The version's file: storageId from an upload with target=blob, made in the last 10 minutes and used nowhere else.

  • widthnumberrequired

    The width the upload returned, in px.

Returns

200 OK with this object.

  • okbooleanrequired

    Always true: the write went through.

    Always true

  • productIdstring · guide idrequired

    The guide's id.

  • langstringrequired

    The language: en (English), de (German), fr (French) or it (Italian).

  • livebooleanrequired

    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.

  • pictureLanguagePicturerequired

    The picture with its version in this language, as list_language_pictures returns it.

    Show 6 fieldsof LanguagePicture
    • mediaIdstring · photo idrequired

      The picture's id: a photo of the guide's sales pages (get_sales_page media). A version is kept under it.

    • placesarray of objectsrequired

      Every place the picture sits in, page by page. One version stands in for it in all of them.

      Show 3 fields
      • listingIdstring · sales page idrequired

        The sales page that shows the picture (list_sales_pages).

      • pagestringrequired

        The page's name in the studio (Main page for an unnamed main page).

      • placestringrequired

        Where on the page the picture sits, as the studio's Languages page names it: Hero, picture 1 (the carousel, counted as shown); Hero, collage image; Pitch, box 2; Gallery, picture 3; Buy form, checkout image.

    • urlstringrequired

      The picture as every reader without a version sees it. Look at it to tell whether it has words in it.

    • widthnumber or nullrequired

      Its width in px, null when unknown. A version in the same shape fits the page's crop.

    • heightnumber or nullrequired

      Its height in px, null when unknown.

    • versionobject or nullrequired

      The picture's own version in this language, or null: readers of the language then see the picture as it is.

      Show 4 fields
      • urlstringrequired

        The version's file: what readers of this language see in the picture's place.

      • widthnumberrequired

        Its width in px.

      • heightnumberrequired

        Its height in px.

      • updatedAtnumberrequired

        When the version was set (Unix time in milliseconds).

  • studioUrlstringrequired

    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.

Response 200
{
  "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

Every error is { error: { code, message } }. Act on the code.

  • 400invalid_argumentA 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).
  • 400invalid_requestA 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.
  • 401unauthenticatedThe request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
  • 401invalid_api_keyThe key is unknown, revoked or expired.
  • 403api_scope_requiredA read-only key called a write operation, or a key without the publish option called publish_changes.
  • 403forbiddenThe key belongs to a creator account that is no longer active.
  • 404not_foundThe id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
  • 413payload_too_largeA JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
  • 429rate_limitedOver a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
  • 500internal_errorAn unexpected failure. The message is hidden on purpose.