当我尝试提交 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/putPagesPageIdIncidentsIncidentId和https://developer.statuspage.io/#operation/patchPagesPageIdIncidentsIncidentId
我错过了什么?
非常感谢任何建议