AI

Edit AI Settings

Required scopes: ai (Read and Write).

patch/users/{userId}/ai/settings

Request

Path parameters

userIdinteger required

User Identifier

Request body

op'replace' | 'remove' | 'test' required

Patch operation to perform

path'/preTranslationAiPromptId' | '/editorSuggestionAiPromptId' | '/qaCheckActionAiPromptId' | '/contextReviewAiPromptId' | '/dailyCostLimit' | '/monthlyCostLimit' | '/userDailyCostLimit' | '/userMonthlyCostLimit' | '/perUserOverrides/{userId}' | '/perUserOverrides/{userId}/costLimitMode' | '/perUserOverrides/{userId}/dailyCostLimit' | '/perUserOverrides/{userId}/monthlyCostLimit' json-pointer required

A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>. The /perUserOverrides/{userId} and /perUserOverrides/{userId}/* paths accept any positive integer for {userId}. Creating a new override requires {userId} to be a project member; this requirement does not apply when editing or removing an existing one. The remove operation is supported for the /perUserOverrides/{userId} path (removes the entire per-user override) and for /perUserOverrides/{userId}/* field paths (removes that field; the resulting override is re-validated).

Response

AI settings was successfully updated

Example response

{
  "data": {
    "preTranslationAiPromptId": 2,
    "editorSuggestionAiPromptId": 5,
    "qaCheckActionAiPromptId": 8,
    "contextReviewAiPromptId": 11,
    "dailyCostLimit": 100,
    "monthlyCostLimit": 2000,
    "userDailyCostLimit": 10,
    "userMonthlyCostLimit": 200,
    "isLimitingActive": true,
    "perUserOverrides": [
      {
        "userId": 123,
        "costLimitMode": "custom",
        "dailyCostLimit": 5,
        "monthlyCostLimit": 100,
        "createdAt": "2026-05-23T11:26:54+00:00",
        "updatedAt": "2026-05-23T11:26:54+00:00"
      }
    ]
  }
}

Changes

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