...
Code Block |
---|
curl 'http://translate5.localdev/editor/config?_dc=1621243733095&taskGuid=%7B928ac493-618e-4475-9436-521c2e3432e7%7D' \ -H 'Connection: keep-alive' \ -H 'Accept: application/json' \ -H 'Cookie: zfExtended=HERE_WILL_BE_YOUR_SESSION_ID_THEN' |
Specific configurations for a specific task import can be set like this:
Code Block |
---|
curl 'http://translate5.localdev/editor/config/runtimeOptions.import.csv.fields.source' \
-X 'PUT' \
-H 'Connection: keep-alive' \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'Cookie: zfExtended=HERE_WILL_BE_YOUR_SESSION_ID_THEN'
--data-raw 'taskGuid=%7B32309a4f-6a22-488a-ac50-b8b520896bdb%7D&data=%7B%22value%22%3A%22source123%22%2C%22taskGuid%22%3A%22%7B32309a4f-6a22-488a-ac50-b8b520896bdb%7D%22%2C%22name%22%3A%22runtimeOptions.import.csv.fields.source%22%7D' |
Where "runtimeOptions.import.csv.fields.source" in the URL has to be replaced with the config name to be set, and the values and taskGuid in the raw data has to be adjusted too. Raw data JSON:
Code Block | ||
---|---|---|
| ||
{
"value":"source123", // the new value to be used for the configuration
"taskGuid":"{32309a4f-6a22-488a-ac50-b8b520896bdb}", // the task guid of the task for which the config should be set
"name":"runtimeOptions.import.csv.fields.source" // the name of the config again
} |
Final start of the import
...