跳转到主要内容
PATCH
修改 API Key

授权

Authorization
string
header
必填

在控制台创建的管理密钥;read 可读取,write 还可修改 API Key。不接受推理 API Key。

路径参数

id
string
必填
Pattern: ^[A-Za-z0-9-]{1,80}$

请求体

application/json
name
string
Required string length: 1 - 60
memberName
string | null
Maximum string length: 80
memberEmail
string | null
Maximum string length: 200
expiresAt
integer<int64> | null

未来的 Unix 毫秒时间戳;null 清除到期时间。

defaultTags
object
allowedModels
string[] | null

精确模型 ID 或 provider/* 规则;null 允许工作空间所有已开通模型,空数组无效。

Required array length: 1 - 50 elements

响应

请求成功。

ok
boolean
必填