---
title: "Edit Project AI Settings"
method: PATCH
path: "/projects/{projectId}/ai/settings"
tags: ["AI"]
---

# Edit Project AI Settings

`PATCH /projects/{projectId}/ai/settings`

## Request

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

**Required scopes:** `project` (Read and Write).

## Path parameters

- `projectId` integer, required

## Request body

- ProjectAiSettingsOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `op` 'replace' | 'remove' | 'test', required: Patch operation to perform
  - `path` '/preTranslationAiPromptId' | '/editorSuggestionAiPromptId' | '/qaCheckActionAiPromptId' | '/contextReviewAiPromptId', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>
  - `value` integer, nullable: AI Prompt Identifier. Required for `replace` and `test` operations

## Response `200`

AI settings was successfully updated

- CrowdinProjectAiSettingsResource: 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` CrowdinProjectAiSettings, required
    - `preTranslationAiPromptId` integer
    - `editorSuggestionAiPromptId` integer
    - `qaCheckActionAiPromptId` integer, nullable
    - `contextReviewAiPromptId` integer, nullable

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `405`: Method Not Allowed

## Changes

- **2026-11-09** `d14928443442`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crowdin/apis/crowdin-api-v2/changes/projects/:projectId/ai/settings/patch.md)

---

[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/d14928443442?raw)
