What type of properties are needed for uploading sdlppx via API so that it automatically processed by Trados Team?

Hi,

I have been trying to figure out how to upload the trados package via API for a while now.

I can manage to upload it, but even if I do, it is not dealt with as it would be if I do it via UI.

I have tried multiple types of properties to be included in the body

properties={"name":"${xtrf_file_name}","role":"reference","type":"native","language":{"languageCode":"de-DE"},"targetLanguages":["cs-CZ"]}
properties={"name":"${xtrf_file_name}","role":"reference","type":"native","language":{"languageCode":"de-DE"}}

Also tried with role "translatable", but still I ended up with not opened package.

I was also trying to use extension .zip in hope that I will be able to process the files further if the compressed file would be uzipped

Parents Reply
  • - Endpoint: https://eu.cloud.trados.com/lc/api-docs/85b2b301a0e08-add-source-file

    - X-LC-Tenant: 67534b83d896246ea5ed217d 

    - X-LC-TraceId:

    - Request URL:

    I used cURL so:

    --request POST --url api.eu.cloud.trados.com/.../source-files --header Accept: application/json --header Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlJUbEZSVGMxTnpCRE9EbEdSRFl5TVRsRk1rUTNPRGhEUWtSRFFUTXhSRVUxTlVVME1EUXhRUSJ9.eyJpc3MiOiJodHRwczovL3NkbC1wcm9kLmV1LmF1dGgwLmNvbS8iLCJzdWIiOiJPTHFJWE9qOGMxQ3hxUldaRk50YXYzZzRnOWZTNjdxaUBjbGllbnRzIiwiYXVkIjoiaHR0cHM6Ly9hcGkuc2RsLmNvbSIsImlhdCI6MTczNjkzMzY3MSwiZXhwIjoxNzM3MDIwMDcxLCJndHkiOiJjbGllbnQtY3JlZGVudGlhbHMiLCJhenAiOiJPTHFJWE9qOGMxQ3hxUldaRk50YXYzZzRnOWZTNjdxaSJ9.fvpwMUH4VgER64cSB9oBsW4MwKVGthor29fndm-WMwQKNBPxXvECVMkzUCqeIvcPUMxvAveC-w7AjZYUZWNhXo4el4gZWOfCwl1U1wEq0KFvDnOxbckwjRouj5cpP4g1nhMLej4TaPCGj2DCpP7OzznvDNwWLwzU9m3fpI_IUGSw_ktbrqu2vxqKEDROwFrXxe9xsFtB2bE7ctzWGk6MPPH_IHA21o4myTsKGYy5CeXbPF0wp_x6pJrQqjndzZD13Rau1ocRYOWdoNLaTQCXBkZBLBkWxPdNf8GAkdXj8XznN_IujPObuX5kjr1O-1x7Bx0FJedGtX5nZcewTkrS9Q --header Content-Type: multipart/form-data --header X-LC-Tenant: 67534b83d896246ea5ed217d --form properties={"name":"package.zip.sdlppx","role":"translatable","type":"native","language":{"languageCode":"de-DE"},"targetLanguages":["cs-CZ"]} --form file=@-

    - Response status code:200

    - Response body:
    {"id":"67878175a764526e370fb147","name":"package.zip.sdlppx","role":"translatable"}

    - Expected result: Package sucessfully added to trados team (this is working). Then package gets unpacked, as it would be if I would manually upload package directly to the project

    - Actual result: Package is added to the project
    Screenshot of a file management interface showing a single file named 'package.zip.sdlppx' with a status 'In Progress'. The file is marked as 'German' language, 'Source' type, and 'Translatable' role.
    If I use reference as a property, the result is the same

    Screenshot of a file management interface showing a single file named 'package.zip.sdlppx' with a status 'In Progress'. The file is marked as 'German' language, 'Source' type, and 'Reference' role.
    - Description:

    When I upload the package without use of API, this is the result, and this is what I expect

    Screenshot of a file list in a software interface showing various files related to 'Data Privacy Day' with file names, paths, and language settings, all set to German.



    Generated Image Alt-Text
    [edited by: RWS Community AI at 9:45 AM (GMT 0) on 15 Jan 2025]
Children