---
title: "Update Api Key Settings Endpoint"
method: PATCH
path: "/api/v1/oauth/api-key/settings"
tags: ["OAuth"]
---

# Update Api Key Settings Endpoint

`PATCH /api/v1/oauth/api-key/settings`

## Request

- Base URL: `https://api.adrex.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.adrex.ai/api/v1/oauth/api-key/settings`
- Auth: HTTP bearer

Update MCP guardrail flags (read_only, allow_destructive) on the active key.

## Request body

- ApiKeySettings
  - `read_only` boolean, nullable
  - `allow_destructive` boolean, nullable
  - `max_daily_budget` number, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/adrex/apis/adrex-ai.md) · [All operations](https://skmtc.dev/adrex/apis/adrex-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/adrex/apis/adrex-ai/revisions/4e6f0f0bc902?raw)
