POST /auth/api-keys/{api_key_id}/rotate

创建新 Key 并标记旧 Key 为 inactive(24h 宽限期),返回新 Key 仅一次

API Key `bearerAuth` application/json

响应

状态描述Schema
200新创建的 API Key

引用的 Schema

service-identity/internal/handler/dto.CreateApiKeyResponse

字段类型必填示例约束描述
created_at string 否
environment string 否
expires_at string 否
id string 否
name string 否
raw_key string 否
scopes array of

string

否
status string 否

service-identity/internal/handler/dto.DataResponse

字段类型必填示例约束描述
code integer 否
data object 否
message string 否