---
title: "更新 API Key"
method: PUT
path: "/api/core/common/api-keys/{apiKeyId}"
tags: ["core/apikey", "coreApikey"]
---

# 更新 API Key

`PUT /api/core/common/api-keys/{apiKeyId}`

## Request

- The document declares no server URL.
- Auth: none declared

更新指定 API Key

## Path parameters

- `apiKeyId` integer, required

## Request body

- ApiKeyUpdateReq
  - `name` string
  - `permission` string

## Response `200`

A successful response.

- object
  - `code` integer
  - `msg` string
  - `data` Envelope
    - `code` integer, required
    - `msg` string, required
    - `data` object

## Changes

- **2026-08-20** `e5f616b215c8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/freezonex/apis/freezonex-tier0-edge-api/changes/api/core/common/api-keys/:apiKeyId/put.md)

---

[API](https://skmtc.dev/freezonex/apis/freezonex-tier0-edge-api.md) - [All operations](https://skmtc.dev/freezonex/apis/freezonex-tier0-edge-api/llms.txt) - [OpenAPI document](https://skmtc.dev/freezonex/apis/freezonex-tier0-edge-api/revisions/e5f616b215c8?raw)
