Skip to main content
PATCH
更新管理密钥
此端点需要所有者或管理员身份以及 management_keys:write 权限。
调用者不能授予自己不具备的范围。未提供的字段会保留当前值。

授权

Authorization
string
header
必填

Bearer 令牌身份验证

路径参数

id
string<uuid>
必填

管理密钥标识符。

请求体

application/json
name
string
Minimum string length: 1
template
enum<string>
可用选项:
read-only,
read-write,
full-control
scopes
expires_at
string<date-time> | null
paused
boolean
dailyRequests
integer | null
必填范围: x >= 0
weeklyRequests
integer | null
必填范围: x >= 0
monthlyRequests
integer | null
必填范围: x >= 0
dailyCostNanos
integer | null
必填范围: x >= 0
weeklyCostNanos
integer | null
必填范围: x >= 0
monthlyCostNanos
integer | null
必填范围: x >= 0
softBlocked
boolean

响应

管理密钥已更新

data
object
必填
最后修改于 2026年10月2日