0

当我尝试提交 PATCH 或 PUT 请求以更新事件时,我得到:

{"error":"incident is missing"} 

这是我的要求:

curl --location --request PATCH 'https://api.statuspage.io/v1/pages/xxxx/incidents/lf7****nf2?api_key=xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"incident": "Requests Failed (500)",
"status": "identified"
}'

我也尝试过 Authorization: Oauth 方法

我能够创建一个事件,也能够列出它们,所以我不确定发生了什么。

我正在关注https://developer.statuspage.io/#operation/putPagesPageIdIncidentsIncidentIdhttps://developer.statuspage.io/#operation/patchPagesPageIdIncidentsIncidentId

我错过了什么?

非常感谢任何建议

4

1 回答 1

0

我需要使用https://doers.statuspage.io/api/v1/

curl https://api.statuspage.io/v1/pages/qfn30z5r6s5h/incidents/21w20wsvz5kv.json \
    -H "Authorization: OAuth 2a7b9d4aac30956d537ac76850f4d78de30994703680056cc103862d53cf8074" \
    -X DELETE
于 2020-06-19T18:09:37.903 回答