v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
Job Template Locales

Create a job template locale

Create a new job template locale.

post/projects/{project_id}/job_templates/{job_template_id}/locales

Path parameters

project_idstring required

Project ID

job_template_idstring required

Job Template ID

Headers

X-PhraseApp-OTPstring

Two-Factor-Authentication token (optional)

Request body

branchstring

specify the branch to use

locale_idstring required

locale id

user_idsstring[]

Array of user ids to be assigned to the job template locale

reviewer_idsstring[]

Array of reviewer ids to be assigned to the job template locale

translator_team_idsstring[]

Array of team ids to be assigned to the job locale as translators

reviewer_team_idsstring[]

Array of team ids to be assigned to the job locale as reviewers

Example request

{
  "branch": "my-feature-branch",
  "locale_id": "abcd1234cdef1234abcd1234cdef1234",
  "user_ids": [
    "abcd1234cdef1234abcd1234cdef1234"
  ],
  "reviewer_ids": [
    "abcd1234cdef1234abcd1234cdef1234"
  ],
  "translator_team_ids": [
    "abcd1234cdef1234abcd1234cdef1234"
  ],
  "reviewer_team_ids": [
    "abcd1234cdef1234abcd1234cdef1234"
  ]
}

Response

Created

idstring

Example response

{
  "id": "626ea67628690c73ac86ac81eec2d185",
  "job_template": {
    "id": "abcd1234cdef1234abcd1234cdef1234",
    "name": "template"
  },
  "users": [
    {
      "id": "abcd1234cdef1234abcd1234cdef1234",
      "username": "joe.doe",
      "name": "Joe Doe",
      "role": "translator"
    }
  ],
  "teams": [
    {
      "id": "abcd1234cdef1234abcd1234cdef1234",
      "name": "Joe's team",
      "role": "translator"
    }
  ],
  "locale": {
    "id": "abcd1234cdef1234abcd1234cdef1234",
    "name": "English",
    "code": "en-GB"
  }
}