Use to upload a file and synchronize contents with a Flex container. The synchronization is two-way:
First, changes from the file can be optionally be pushed into the Flex container.
Second, the file contents is updated with the latest translations from the Flex container.
The result is your updated file.
URL
(POST) /api/apps/wbflex/documents/{id}/contents/sync
PARAMETERS
The URL parameters are:
id | Specify either a document ID (such as 1000) or a job ID (such as c300). | string, Mandatory |
The BODY must be a JSON object with these properties:
file | A JSON object with the reference to the uploaded file, the parser configuration for content extraction and more. Please see a full list of properties here: Pushing content - "files" property . The file must be uploaded using media/upload to obtain a Example: "file": { "token": "{{uploadedFile}}", "name": "software-strings.xlsx", "formatId": 137, "stringKeyPattern": "string-{seq}" } | object, Mandatory |
push | An optional JSON object that defines how file content is updated to the Flex container. If not specified then no updating will be done. See specifications further down. Example: "push": { "enabled": true } | bool, Optional |
The push
node has these properties:
enabled | Specifies if content shall be synchronized into the Flex container or not. | bool, Mandatory |
isPreviewMode | Optional boolean, default is false. If true then the system simulates the update and returns all the details but it will not actually update the Flex container. | bool, Optional |
syncToFlexMode | Optional, default is This field specifies how content is synchronized from the uploaded file to the Flex container. In many scenarios you want to sync source text changes from the file to Flex and translation changes from Flex back into the file. The options are:
| string, Optional |
RESULTS
…