curl --request PUT \
--url https://sandbox.circularo.com/api/v1/languages/import \
--header 'Authorization: Bearer <token>' \
--form 'file=@document.pdf' \
--form 'languages[0]=en' \
--form 'languages[1]=cs' \
--form 'overwriteFromFile=false' \
--form 'removeMissing=false'{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Import languages from a file
PUT /languages/import
Applies a language export file to the tenant. Languages the file has and the tenant does not are added, always inactive, so nobody is offered a language before it has been reviewed; translation keys the file has and the tenant does not are added as well.
What happens where both sides have the same key is yours to choose: by default the import only fills in blanks, and overwriteFromFile makes the file win instead. Keys the tenant has and the file does not are kept unless removeMissing says otherwise. The whole file is applied in one write, so a file that is rejected anywhere changes nothing at all.
The answer only reports that it succeeded; read the languages back to see what the file did.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user role: admin
curl --request PUT \
--url https://sandbox.circularo.com/api/v1/languages/import \
--header 'Authorization: Bearer <token>' \
--form 'file=@document.pdf' \
--form 'languages[0]=en' \
--form 'languages[1]=cs' \
--form 'overwriteFromFile=false' \
--form 'removeMissing=false'{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}