Hosting

Publish translations to given environment

Changed on

The endpoint is used for publishing translations for given environment.

  • By default, every project has two Translation Hosting environments (_latest and _production) and Translation Editor environment.
  • Publication always (if not specified differently in the project settings) happens from the Translation Editor environment to the _latest environment, and then to the _production environment.
  • There is no way to change this flow other than creating a custom environment in the project settings.
  • In order to publish translations to the Production environment, you need use _production as 'environmentKey' parameter.
  • In order to publish translations to the Latest environment, you need use _latest as environmentKey parameter.
  • In order to publish translations to the custom environment, you need use your custom environment key as environmentKey parameter.
  • Labels can be specified only for the Latest environment.
post/api/v2/environments/{environmentKey}/publish

Request

Path parameters

environmentKeystring required

Request body

labelsstring[]

Response

OK

Changes

    • info

      added optional request body

    • warning

      deleted the header request parameter X-SimpleLocalize-Token

    • info

      the endpoint scheme security Project API Key was added to the API

    • info

      the endpoint scheme security apiKey was removed from the API

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status