跳转到主要内容
POST
/
preference
/
update
修改偏好设置
curl --request POST \
  --url 'https://api.flashcat.cloud/preference/update?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "trigger_notify": {
    "critical": [
      "email"
    ],
    "warning": [
      "email"
    ],
    "info": [
      "email"
    ]
  },
  "schedule_shift_notify": {
    "personal_channels": [
      "email"
    ]
  },
  "status_change_notify": {
    "im_integrations": [
      "<string>"
    ]
  }
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
trigger_notify
故障触发通知方式 · object
必填
schedule_shift_notify
换班触发通知方式 · object
status_change_notify
状态页变更通知 · object

响应

200 - application/json

不为空时代表请求出错

error
object

错误信息,仅失败时存在