Error when creating a project in Trados Team using the API

Hi all,

I'm trying to integrate our translation management system and Trados Team. The API works fine in that I can list projects, translation engines, templates, etc. What I cannot get to work is creating a project. I tried the example from the API docs with the various IDs that I retrieve using the API's 'list'  endpoints. The resulting JSON is this:

{
  "name": "API-creation-test 1",
  "description": "Eerste test met project via API",
  "dueBy": "2025-03-19T10:11:12.000Z",
  "projectTemplate": {
    "id": "672498d99da66135543ff4a7"
  },
  "languageDirections": [
    {
      "sourceLanguage": {
        "languageCode": "en-GB"
      },
      "targetLanguage": {
        "languageCode": "nl-NL"
      }
    }
  ],
  "location": "6724dbcf0d09c3e3925ba2ec",
  "translationEngine": {
    "id": "6724dee35ba2d5774df9019e",
    "strategy": "copy"
  },
  "fileProcessingConfiguration": {
    "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "strategy": "copy"
  },
  "workflow": {
    "id": "675c59f3c93f6e3621571d47",
    "strategy": "copy"
  },
  "projectManagers": [
    {
      "id": "6724949b0734612e1cb1749f",
      "type": "user"
    }
  ],
  "settings": {
    "general": {
      "completionConfiguration": {
        "completeDays": 90,
        "archiveDays": 90,
        "archiveReminderDays": 7
      }
    }
  }
}

I did tests in Postman and get this as a response:

{
  "errorCode": "notFound",
  "message": "Invalid input on create project.",
  "details": [
    {
      "name": null,
      "code": "notFound",
      "value": null
    }
  ]
}
The JSON is valid, I checked in JSONLint. All the elements are from the example in the API docs and all the IDs are taken from my Trados Team instance. So I'm stumped at the moment.
Can anyone tell me whether I'm doing something wrong here?
 
Kind regards,
Henk
Parents
  • Hi all,

    I have made some progress. It turns out that a customer is not the same as a location. In Trados Team both have the same name, so I assumed 'Customer' is just another term for a 'Location'. When specifying the location for a project, you actually need the specify the location the customer is in.

    The only issue I'm having now is that the project template ID is reported as invalid. I checked and double-checked, and the ID provided is correct, but one level up in the location hierarchy. Is that not allowed? The template is very bare-boned, i.e. has no languages or translation engines assigned.

    The project is created, when I remove the projectTemplate item but as a 'restricted' project. 

    Regards,

    Henk

Reply
  • Hi all,

    I have made some progress. It turns out that a customer is not the same as a location. In Trados Team both have the same name, so I assumed 'Customer' is just another term for a 'Location'. When specifying the location for a project, you actually need the specify the location the customer is in.

    The only issue I'm having now is that the project template ID is reported as invalid. I checked and double-checked, and the ID provided is correct, but one level up in the location hierarchy. Is that not allowed? The template is very bare-boned, i.e. has no languages or translation engines assigned.

    The project is created, when I remove the projectTemplate item but as a 'restricted' project. 

    Regards,

    Henk

Children