---
title: "Update Api Key"
method: PATCH
path: "/v1/api-keys/{key_id}"
---

# Update Api Key

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

## Request

- Base URL: `https://api.app.membase.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.app.membase.ai/v1/api-keys/{key_id}`
- Auth: none declared

Change a developer key in place: `name`, `profile` (its access level),
`profile_access`, `all_views`. The grant changes for the key's next call; the token
is untouched. Which containers it reaches is PATCH /v1/exposures/{id}/views.

## Path parameters

- `key_id` string, required

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error
- `default`: Error envelope (ADR 0027)

---

[API](https://skmtc.dev/membase/apis/membase-hosted-api.md) · [All operations](https://skmtc.dev/membase/apis/membase-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/membase/apis/membase-hosted-api/revisions/e0ac58cdb320?raw)
