Movabase Docs
Public API

Bulk translation operation

Performs bulk translation operations. Two modes: `replace-file` deletes all existing translations for a file+language and re-inserts; `bulk-upsert` efficiently compares existing vs new translations and batches updates/inserts. Requires `canEditTranslations` permission.

PUT
/api/projects/{project-id}/translations
sb-access-token<token>

Supabase Auth session cookie. Automatically set when users log in via the Movabase web app.

In: cookie

Path Parameters

project-id*string

Project ID

Formatuuid

Request Body

application/json

operation*string

Operation type

Value in"replace-file" | "bulk-upsert"
fileName*string

Target file name

Lengthlength <= 256
languageCode*string

Target language code

translations*array<>

Array of key-value pairs

Response Body

application/json

curl -X PUT "https://app.movabase.com/api/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/translations" \  -H "Content-Type: application/json" \  -d '{    "operation": "replace-file",    "fileName": "string",    "languageCode": "string",    "translations": [      {        "key": "string",        "value": "string"      }    ]  }'
{
  "success": true,
  "inserted": 0,
  "updated": 0
}