---
title: "Edit AI Custom Placeholder"
method: PATCH
path: "/users/{userId}/ai/settings/custom-placeholders/{aiCustomPlaceholderId}"
tags: ["AI"]
deprecated: true
---

# Edit AI Custom Placeholder

`PATCH /users/{userId}/ai/settings/custom-placeholders/{aiCustomPlaceholderId}`

## Request

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

> **Deprecated.**

**Required scopes:** `ai.prompt` (Read and Write).

Use [Edit AI Snippet](#operation/api.ai.prompts.snippets.patch) instead.

## Path parameters

- `userId` integer, required
- `aiCustomPlaceholderId` integer, required

## Request body

- AiCustomPlaceholderOperation[]: 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' | '/placeholder' | '/value', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

## Response `200`

AI Custom Placeholder was successfully updated

- AiCustomPlaceholderResource: 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` AiCustomPlaceholder, required
    - `id` integer
    - `description` string
    - `placeholder` string
    - `value` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: AI Custom Placeholder with specified user id and id was not found
- `405`: Method Not Allowed

---

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