Theme

Continuous Projects

Import a file

POST https://localize.cirro.io/api/v2/continuous_projects/:uid/imports

Parameters

ParameterTypeNote
import[file]requiredfileThe file in binary format
import[source_language_code]requiredstringiso code of the source language
import[conflict_mode]enumDefault: replace. Available options: replace, additive_only
The strategy used to merge the imported strings into the existing ones.

Description

Returns the import object if the import succeeded. Returns an error if the import failed.

{
    "import": {
        "id": 123,
        "conflict_mode": "replace",
        "target_file": {
            "key": "-your-file-name-.yml",
            "target_language_code": "en"
        }
    }
}

Example

1curl https://localize.cirro.io/api/v2/continuous_projects/UID/imports \
2  -H "Authorization: jwt <JWT_ACCESS_TOKEN>" \
3  --form 'import[file]=@local_path_to_your_file' \
4  --form 'import[source_language_code]="en"'
Previous
About Continuous Projects