Placeholders

Add Project Placeholder

Required scopes: project.placeholder (Read and Write).

Assigns a custom placeholder of the organization to the project, so Crowdin starts recognizing it in this project. type, index, isBlocking and formats apply to this project only — the placeholder definition they belong to is shared.

post/projects/{projectId}/placeholders

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

Request body

customPlaceholderIdinteger required

ID of the custom placeholder your organization defined

type'high' | 'low'

Priority the placeholder is matched with. One of: high, low

indexinteger

Position of the placeholder among the ones assigned to the project

isBlockingboolean

If true, a mismatch of the placeholder blocks the translation from being saved

formatsstring[]

File formats the placeholder is applied to; an empty array means every format

Example request

{
  "customPlaceholderId": 3,
  "type": "high",
  "index": 1,
  "formats": [
    "docbook",
    "adoc"
  ]
}

Response

Project Placeholder was successfully assigned

Example response

{
  "data": {
    "id": 1,
    "customPlaceholderId": 1,
    "type": "high",
    "index": 1,
    "formats": [
      "docbook",
      "adoc"
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.