Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

925 views 0 12
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