Movabase Docs
Public API

Create file translations

Creates file_translation records for one or more languages. Skips records that already exist. Requires `canEditTranslations` permission.

POST
/api/projects/{project-id}/files

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 POST "https://example.com/api/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/files" \  -H "Content-Type: application/json" \  -d '{    "fileName": "string",    "languages": [      {        "code": "string",        "name": "string",        "emoji": "string"      }    ]  }'
{  "files": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",      "file_name": "string",      "language": "string",      "language_name": "string",      "language_emoji": "string"    }  ]}