---
title: "Edit Custom Placeholder"
method: PATCH
path: "/custom-placeholders/{customPlaceholderId}"
tags: ["Placeholders"]
---

# Edit Custom Placeholder

`PATCH /custom-placeholders/{customPlaceholderId}`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/custom-placeholders/{customPlaceholderId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/docs/custom-placeholders/:customPlaceholderId/patch.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `custom-placeholder` (Read and Write).

Updates a custom placeholder of the organization.

## Path parameters

- `customPlaceholderId` integer, required

## Request body

- CustomPlaceholderOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `op` 'replace' | 'test', required: Patch operation to perform
  - `path` '/description' | '/definition' | '/argumentDelimiter', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

## Response `200`

Custom placeholder was successfully updated

- CustomPlaceholderResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` union, required
    - CustomPlaceholder
      - `id` integer
      - `description` string, nullable: Custom placeholder description. `null` when none is set
    - CustomPlaceholderFull
      - `id` integer
      - `definition` string
      - `description` string, nullable: Custom placeholder description. `null` when none is set
      - `argumentDelimiter` string

## Other responses

- `400`: Invalid Request Body
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Custom Placeholder with specified id was not found
- `405`: Method Not Allowed
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/revisions/dc68744c5384?raw)
