DELETE
/
api
/
auth
/
api-keys
/
{apiKeyId}
撤销一个 API Key
curl --request DELETE \
  --url https://wfapi.yuhe.space/api/auth/api-keys/{apiKeyId} \
  --cookie workflow_auth_session=
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": {
    "revoked": true,
    "id": "<string>"
  }
}

Authorizations

workflow_auth_session
string
cookie
required

通过密码登录或管理员密钥登录建立的 httpOnly 浏览器会话。

Path Parameters

apiKeyId
string
required

Response

撤销成功。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object
required