---
title: "Update API Key"
method: PUT
path: "/v1/user/apikey/{api_key_id}"
tags: ["User"]
---

# Update API Key

`PUT /v1/user/apikey/{api_key_id}`

Update an API key for the currently logged in user

## Path parameters

- `api_key_id` string, uuid, required

## Request body

- UpdateApiKey
  - `name` string, nullable
  - `accessLevel` 0 | 1, required
  - `projectRestrictions` string[], nullable
  - `tableRestrictions` string[], nullable
  - `documentRestrictions` string[], nullable

## Response `200`

Successfully updated the API key

- object
  - `apiKey` string — Updated API key details

## Other responses

- `400` — Validation error

---

[API](https://skmtc.dev/morta-technology/apis/morta-api-reference.md) · [All operations](https://skmtc.dev/morta-technology/apis/morta-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morta-technology/morta-api-reference/revisions/9c58c1c1e7e8/schema)
