---
title: "Update Own Key"
method: PATCH
path: "/v1/organizations/me/keys/{key_id}"
tags: ["organization-keys"]
---

# Update Own Key

`PATCH /v1/organizations/me/keys/{key_id}`

Update one of the caller's own API keys.

## Path parameters

- `key_id` string, required

## Request body

- UpdateOwnKeyRequest — Update-key body for the member surface. The operator's ``UpdateKeyRequest`` minus ``exclude_from_budget``, for the reason the create body gives. The tri-state fields follow the same ``model_fields_set`` idiom: absent = unchanged, null = clear to inherit, a value = pin it.
  - `allowed_models` string[], nullable
  - `capture_agent_telemetry` boolean, nullable
  - `expires_at` string, date-time, nullable
  - `is_active` boolean, nullable
  - `key_name` string, nullable
  - `metadata` object, nullable
  - `reject_user_mismatch` boolean, nullable

## Response `200`

Successful Response

- KeyInfo — Response model for key information.
  - `allowed_models` string[], nullable, required
  - `capture_agent_telemetry` boolean, nullable, required
  - `created_at` string, required
  - `exclude_from_budget` boolean, required
  - `expires_at` string, nullable, required
  - `id` string, required
  - `is_active` boolean, required
  - `key_name` string, nullable, required
  - `key_prefix` string, nullable, required
  - `last_used_at` string, nullable, required
  - `metadata` object, required
  - `reject_user_mismatch` boolean, nullable, required
  - `user_id` string, nullable, required
  - `workspace_id` string, uuid, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-31** `af93af8f54c8` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mozilla-ai/apis/otari/changes/v1/organizations/me/keys/:key_id/patch.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc.dev/mozilla-ai/apis/otari/revisions/80c117c36f36?raw)
