Account & Projects

Add a new target locale

Changed on

Add a new target locale to the project.

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

Request

  • Base URL
    https://api.smartling.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Unique identifier of a Smartling project — 9 lowercase alphanumeric characters.

Example:84c012a33

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

Locale identifier. Either a 2-letter language code (en) or a language-region pair (en-US). The language part is always lowercase; the region part is always uppercase.

Example request

{
  "defaultWorkflowUid": "ac48ht4qy",
  "localeId": "fr-FR"
}

Response

OK

Example response

{
  "response": {
    "data": {
      "accountUid": "ab5f1939",
      "archived": false,
      "projectId": "fd7244365",
      "projectName": "fd7244365",
      "projectTypeCode": "APPLICATION_RESOURCES",
      "sourceLocaleDescription": "English",
      "sourceLocaleId": "en-US",
      "targetLocales": [
        {
          "description": "Russian (Russia)",
          "enabled": true,
          "localeId": "ru-RU"
        }
      ]
    }
  }
}

Changes

    • breaking

      added the pattern ^[a-z0-9]{9}$ to the path request parameter projectId

    • breaking

      added to the request property allOf list

    • breaking

      the request property type changed from string to no type

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the /// response's property type changed from string to no type for status

    • breaking

      the /// response's property type changed from string to no type for status

    • breaking

      the ///// response's property type changed from string to no type for status

    • info

      added to the /// response property allOf list for the response status

    • info

      added to the ///// response property allOf list for the response status

    • info

      added to the /// response property allOf list for the response status