Continuous Projects
Import a file
POST
https://localize.cirro.io/api/v2/continuous_projects/:uid/importsParameters
| Parameter | Type | Note | |
|---|---|---|---|
import[file] | required | file | The file in binary format |
import[source_language_code] | required | string | iso code of the source language |
import[conflict_mode] | enum | Default: 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"'