Skip to main content

Method

PUT /v1/gallery/files/:id/translations

Path Parameters

id
string
Gallery file ID.

Body Parameters

Headers

Authorization
string
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)
content-type
string
application/json

Request Example

curl -X PUT "https://api.voyantcloud.com/v1/gallery/files/gal_file_123/translations" \
  -H "Authorization: Bearer $VOYANT_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "locale": "fr",
    "altText": "Bannière croisière d'été",
    "description": "Visuel principal pour la campagne 2025"
  }'

Response

{
  "data": {
    "fileId": "gal_file_123",
    "locale": "fr",
    "altText": "Bannière croisière d'été",
    "description": "Visuel principal pour la campagne 2025",
    "translations": {
      "en": { "altText": "Summer sail banner", "description": "Hero artwork" },
      "fr": { "altText": "Bannière croisière d'été", "description": "Visuel principal pour la campagne 2025" }
    },
    "supportedLanguages": ["en", "fr", "de"],
    "defaultLocale": "en"
  }
}
Supplying null (or omitting both fields) removes the translation for that locale.