v2

latestOpenAPI 3.0.02026-08-07103189636.5 KB
Account & Projects

Add a new target locale

Add a new target locale to the project.

post/projects-api/v2/projects/{projectId}/targetLocales

Path parameters

projectIdstring required

A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.

Request body

defaultWorkflowUidstring

The default workflow that should be used when content is authorized. If not specified, the default workflow configured for the project will be used.

localeIdstring

The locale identifier (localeId) of the locale to be added to the project.

Example request

{
  "defaultWorkflowUid": "ac48ht4qy",
  "localeId": "ru-RU"
}

Response

OK

Example response

{
  "response": {
    "data": {
      "accountUid": "ab5f1939",
      "archived": false,
      "projectId": "fd7244365",
      "projectName": "fd7244365",
      "projectTypeCode": "APPLICATION_RESOURCES",
      "sourceLocaleDescription": "English",
      "sourceLocaleId": "en-US"
    }
  }
}