跳转到主要内容
PATCH
PATCH /admin/api/api-keys/{id}

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

路径参数

id
string
必填

请求体

application/json
enabled
boolean | null
expiresAtMs
integer<int64> | null
management
boolean | null
name
string | null
organizationId
string | null
teamId
string | null

响应

Success

enabled
boolean
必填
expiresAtMs
integer<int64> | null
必填
hasSecret
boolean
必填

Whether the instance retained a sealed copy of the key text, i.e. whether reveal can answer. The bytes themselves have no field.

id
string
必填
kind
string
必填

user or oauth. An oauth key is a grant's internal key and is not a bearer credential; it is listed so an operator can see it, never created or revealed through this family.

management
boolean
必填

Whether the key may manage; see api_keys.management.

name
string
必填
organizationId
string | null
必填
prefix
string
必填

The first eight characters of the key body, for recognising a key in a list. Not a secret and not enough of one to be useful.

teamId
string | null
必填
userId
string
必填