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

Authorization

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

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.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}