Documentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt
Use this file to discover all available pages before exploring further.
概览
该接口用于更新已有用户 API Key 的名称、额度、模型白名单、过期时间或状态。请求体
PATCH 请求至少需要提供一个字段。| 字段 | 类型 | 默认值 / 限制 | 说明 |
|---|---|---|---|
status | enum | - | active、inactive、suspended、revoked |
name | string | 长度 1-50 | 更新后的展示名称 |
limitAmount | number | null | 最小 0,输入上限 1000000 | null = 不限额,0 = 零额度,正数会被规范化为一个存储上限,且不能超过 100000 USD 等值 |
limitCurrency | enum | 默认 USD | 仅支持 USD。发送 CNY 会返回 400 currency_retired。 |
models | string[] | - | 更新后的逻辑模型白名单 |
expiresAt | string | null | RFC3339 datetime | null 表示清除过期时间 |
说明
- Management API v1 故意不支持硬删除。
revoked更适合作为终态使用;如需恢复,通常建议新建一个 Key,而不是依赖后续“解封”流程。