{ "error" : "incident is missing" } 使用 PATCH 或 PUT 更新事件时



当我尝试提交补丁或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"
}'

我也尝试过授权:Oauth方法

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

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

我错过了什么?

任何建议都非常感谢

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

curl https://api.statuspage.io/v1/pages/qfn30z5r6s5h/incidents/21w20wsvz5kv.json 
-H "Authorization: OAuth 2a7b9d4aac30956d537ac76850f4d78de30994703680056cc103862d53cf8074" 
-X DELETE

最新更新