---
title: "Patch api key"
method: PATCH
path: "/apiKeys/{apiKeyId}/"
tags: ["ApiKeys"]
---

# Patch api key

`PATCH /apiKeys/{apiKeyId}/`

Updates an existing api key for an organization.

## Path parameters

- `apiKeyId` string, required

## Headers

- `x-m2-organization-id` string, required

## Request body

- PatchApiKeyRequest — Request body for updating an existing API key
  - `displayName` string
  - `claims` object
  - `permissions` string[]
  - `isActive` boolean

## Response `200`

Response body for updating an existing API key

- PatchApiKeyResponse — Response body for updating an existing API key
  - `documentId` string, required
  - `displayName` string, required
  - `isActive` boolean, required
  - `isManagedByTerraform` boolean, required
  - `organizationId` string, required
  - `claims` object
  - `permissions` string[]
  - `keyString` string

---

[API](https://skmtc.net/otherside/apis/organizations.md) · [All operations](https://skmtc.net/otherside/apis/organizations/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/otherside/organizations/revisions/7bb9c8fbb542/schema)
