Error code when trying to create a project in Trados Live Team via the REST API (Public API)

Former Member
Former Member

When creating a project in Trados Live Team via the REST API (Public API) the following error code appears in the response:

• Method: POST
• URL: lc-api.sdl.com/.../projects
• Header:
o Authorization: Bearer {{access-token}}
o X-LC_Tenant: {{accountId}}
• Body:
{
"name": "Translation_2022-03-04T10:19:24.714Z",
"description": "Batch of Products for SDL Translation ",
"dueBy": "2022-03-04T10:19:24.714Z",
"projectTemplate":
{
"id": "2022-03-04T10:19:24.714Z"
},
"languageDirections":
[
{
"sourceLanguage":
{
"languageCode": "de-DE"
},
"targetLanguage":
{
"languageCode": "pl-PL"
}
}
]
}

• Response-Status: 401 Unauthorized
• Response-Body:
{
"errorCode": "AUTHENTICATION_EXCEPTION",
"message": "Authentication failed",
"details": []
}

The access token was successfully retrieved from the authentication server (sdl-prod.eu.auth0.com/.../token) via the client ID and the client secret.

Parents
  • Hi Rachel,

    Can you provide us the TRACE ID for the request so we can investigate further? 

    Also, please check the project template id and add a valid ID:

    "projectTemplate":
    {
    "id": "2022-03-04T10:19:24.714Z"
    }

  • Former Member
    0 Former Member in reply to Maria Miron

    Hello Maria,

    Thank you for your feedback. Here is the reply from my IT colleagues.

    The trace ID is: 9b7fd11f-32cd-4650-9ebc-23bbd5384c8

    We also checked with other project IDs and even tried to get the project IDs via GET /project-templates but every time we received 

    Response-Body:
    {
    "errorCode": "AUTHENTICATION_EXCEPTION",
    "message": "Authentication failed",
    "details": []
    }

    The service user is selected correctly in the API configuration in the TRADOS LIVE intergration setup and even has administrator permissions on /root.

  • Hi,

    Can you replace " X-LC_Tenant" with "X-LC-Tenant" here "X-LC_Tenant: {{accountId}}" . We didn't find any information for the trace id in the last 2 weeks.

    Thank you!

  • Former Member
    0 Former Member in reply to Maria Miron

    Hi Maria,

    Here is the response from IT:

    {

        "name": "Translation_2022-03-04T10:19:24.714Z",

        "description": "Batch of Products for SDL Translation ",

        "dueBy": "2022-03-04T10:19:24.714Z",

        "projectTemplate":

       {

                      "id": "Lampenwelt DE_SK"

        },

        "languageDirections":

        [

            {

                "sourceLanguage":

                {

                    "languageCode": "de-DE"

                },

                "targetLanguage":

                {

                    "languageCode": "pl-PL"

                }

            }

        ]

    }

    • Response-Code: 401 Unauthorized
    • Response-Body:

    {

        "errorCode": "AUTHENTICATION_EXCEPTION",

        "message": "Authentication failed",

        "details": []

    }

Reply
  • Former Member
    0 Former Member in reply to Maria Miron

    Hi Maria,

    Here is the response from IT:

    {

        "name": "Translation_2022-03-04T10:19:24.714Z",

        "description": "Batch of Products for SDL Translation ",

        "dueBy": "2022-03-04T10:19:24.714Z",

        "projectTemplate":

       {

                      "id": "Lampenwelt DE_SK"

        },

        "languageDirections":

        [

            {

                "sourceLanguage":

                {

                    "languageCode": "de-DE"

                },

                "targetLanguage":

                {

                    "languageCode": "pl-PL"

                }

            }

        ]

    }

    • Response-Code: 401 Unauthorized
    • Response-Body:

    {

        "errorCode": "AUTHENTICATION_EXCEPTION",

        "message": "Authentication failed",

        "details": []

    }

Children