---
title: "Atualiza nome, escopo, expiração ou IP allowlist"
method: PATCH
path: "/v1/api-keys/{id}"
tags: ["api-keys"]
---

# Atualiza nome, escopo, expiração ou IP allowlist

`PATCH /v1/api-keys/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateApiKeyRequest
  - `name` string, nullable
  - `scope` string, nullable
  - `expiresAt` string, date-time, nullable
  - `ipAllowlist` string, nullable
  - `clearExpiration` boolean
  - `clearIpAllowlist` boolean

## Response `204`

Atualizado

## Other responses

- `401` — Token ausente ou inválido
- `403` — Sem permissão (plano, escopo, status da conta)
- `404` — Recurso não encontrado

## Changes

- **2026-05-25** `4e426b85f784` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ararahq/apis/ararahq-api/changes/v1/api-keys/:id/patch.md)

---

[API](https://skmtc.dev/ararahq/apis/ararahq-api.md) · [All operations](https://skmtc.dev/ararahq/apis/ararahq-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ararahq/ararahq-api/revisions/174c89e36a13/schema)
