跳转到主要内容
POST
/
person
/
app-key
/
enable
Key启用
curl --request POST \
  --url 'https://api.flashcat.cloud/person/app-key/enable?app_key=' \
  --header 'Content-Type: <content-type>' \
  --header 'Flashcat-Mfa-Code: <flashcat-mfa-code>' \
  --header 'Flashcat-Mfa-Device: <flashcat-mfa-device>' \
  --data '
{
  "key_id": 123,
  "person_id": 123
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string
必填
Flashcat-Mfa-Code
string
必填

mfa验证码

Flashcat-Mfa-Device
string
必填

mfa设备

请求体

application/json
key_id
integer
必填

ID

person_id
integer

key所属用户,仅使用账户owner身份调用api时可以传入

响应

200 - application/json
error
object

错误信息,仅失败时存在