It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

{"error":"incident is missing"} when using PATCH or PUT to update an incident Edited

Hello,

When I try to submit a PATCH or PUT request to update an incident, I get:

{"error":"incident is missing"} 

Here is my request:

 

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"
}'

 

I have also tried with Authorization: Oauth <api-key> approach

I am able to create an incident and am also able to list them, so I am unsure what is going on.

 

I am following https://developer.statuspage.io/#operation/putPagesPageIdIncidentsIncidentId and https://developer.statuspage.io/#operation/patchPagesPageIdIncidentsIncidentId

 

What am I missing?

 

Any advice is much appreciated

 

2 answers

1 accepted

0 votes
Answer accepted

i need to use https://doers.statuspage.io/api/v1/ methods

0 votes
Zach Atlassian Team Jun 19, 2020

Hey Norman 

 

Yeah, you're going to need to wrap everything in an incident container. So your call would need to look similar to the example shown on doers.statuspage.io - 

 

curl https://api.statuspage.io/v1/pages/{page_id}/incidents.json \
-H "Authorization: OAuth **************" \
-X PATCH \
-d "incident[name]=Requests Failed (500)" \
-d "incident[status]=identified" \
-d "incident[body]=Sample update" \
-d "incident[component_ids][]=yxrqcr0kc3hx" \

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Statuspage

Introducing Statuspage Free

Atlassian community, Today is a major day not only for Statuspage, but also for the Atlassian community. Statuspage continues to be the industry leader for incident communication by constantly look...

760 views 2 31
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you