Method
PUT /v1/gallery/files/:id/translations
Path Parameters
Gallery file ID.
Body Parameters
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)application/jsoncurl -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"
}'
{
"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"
}
}
Upsert localized alt text and descriptions for a gallery file.
PUT /v1/gallery/files/:id/translations
Authorization: Bearer YOUR_API_KEY)application/jsoncurl -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"
}'
{
"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"
}
}
null (or omitting both fields) removes the translation for that locale.