Unable to create a project via the API (project.template.id is invalid, although it does exist)

Good afternoon, 

I have an issue while I am trying to create a project. 

  • Endpoint: languagecloud.sdl.com/.../025707d21ecc0-create-project
  • X-LC-Tenant: LC-6687a5e46de0f00a5b4f6f50
  • X-LC-TraceId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  • Request URL: lc-api.sdl.com/.../projects
  • Request body:
    {  
        "description": "Api project.",
        "dueBy": "2024-07-23T10:03:29.850Z",
        "languageDirections": [
            {
                "sourceLanguage": {
                    "languageCode": "en-US"
                },
                "targetLanguage": {
                    "languageCode": "fr-FR"
                }
            },
            {
                "sourceLanguage": {
                    "languageCode": "en-US"
                },
                "targetLanguage": {
                    "languageCode": "nl-NL"
                }
            }
        ],
        "location": "534b16ea6f114fd1af386f24d8f04730",
        "name": "kohler_1559403-2-Pull-Down-Kitchen-Faucet_en-US_1412",
        "projectTemplate": {
            "id": "66963b09ea16e64bffa8528b"
        },
        "translationFiles": [
            {
                "language": "fr-FR",
                "name": "kohler_1559403-2-Pull-Down-Kitchen-Faucet_en-US_fr-FR_2121.xml",
                "role": "translatable",
                "type": "native"
            },
            {
                "language": "nl-NL",
                "name": "kohler_1559403-2-Pull-Down-Kitchen-Faucet_en-US_nl-NL_2121.xml",
                "role": "translatable",
                "type": "native"
            }
        ]
    }
    
  • Response body:

{
    "errorCode": "invalid",
    "message": "Invalid input on create project.",
    "details": [
        {
            "name": "project.template.id",
            "code": "invalid",
            "value": "66963b09ea16e64bffa8528b"
        }
    ]
}

  • Expected result: The project is created.
  • Actual result: The project is not created due to projectTemplate.id is invalid ( although the project template id is stated in the portal).
  • Description: When attempting to create a new project, I get the error mentioned above.
emoji
Parents Reply Children
No Data