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

# Update Key

`PATCH /api/keys/{key_id}`

## Request

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

更新 API key 元数据、scope、quota 或启停状态；不返回明文 key。

## Path parameters

- `key_id` integer, required

## Headers

- `X-Workspace-ID` string, nullable
- `authorization` string
- `X-API-Key` string

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent.md) · [All operations](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent/llms.txt) · [OpenAPI document](https://skmtc.dev/smartcrawler/apis/smart-crawler-ai-agent/revisions/a0eb313934e4?raw)
