Placeholders

Project System Placeholder Batch Operations

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

Turns system placeholders on and off — one row or a whole screen of them in one request. Each operation names its own row, so the change costs one call, one re-validation of the Placeholders check and one write, and the response carries the rows it changed, in catalogue order.

Note: A test operation asserts the state of a row without writing it, so a document of test operations alone changes nothing

patch/projects/{projectId}/system-placeholders

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

Request body

op'replace' | 'test' required

Patch operation to perform

path'/wrappedAmpersand/isEnabled' | '/appleStringsdictPlural/isEnabled' | '/dollarInsideBraces/isEnabled' | '/dollarOutsideBraces/isEnabled' | '/wrappedColon/isEnabled' | '/wrappedDollar/isEnabled' | '/dollarParentheses/isEnabled' | '/i18nextNesting/isEnabled' | '/i18nextLegacy/isEnabled' | '/rubyInterpolation/isEnabled' | '/mailchimpMergeTag/isEnabled' | '/swiftInterpolation/isEnabled' | '/bracesTriple/isEnabled' | '/bracesDouble/isEnabled' | '/bracesSingle/isEnabled' | '/bracesDoubleFormatted/isEnabled' | '/dateTimePattern/isEnabled' | '/appleStringCatalogNamed/isEnabled' | '/printfSpecifier/isEnabled' | '/pythonPercentFormat/isEnabled' | '/railsI18n/isEnabled' | '/javaMessageFormat/isEnabled' | '/dotNetCompositeFormat/isEnabled' | '/twig/isEnabled' | '/phpInterpolation/isEnabled' | '/freemarkerDirective/isEnabled' | '/wrappedPercent/isEnabled' | '/dateTimeSpecifier/isEnabled' json-pointer required

A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>.

The first segment is the key of the system placeholder, and /isEnabled is the only property it accepts. See Placeholders for what each key matches.

valueboolean required

Whether Crowdin recognizes the placeholder in this project

Response

Project system placeholders were successfully updated

Example response

{
  "data": [
    {
      "data": {
        "id": "printfSpecifier",
        "isEnabled": true,
        "label": "C-style format specifiers",
        "examples": [
          "%s"
        ],
        "description": "C, PHP, Java, Objective-C, Android, and Qt"
      }
    }
  ]
}

Changes

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