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

Incorrect Component status using REST API for Incident Edited

While trying to create incident through REST API using URL https://api.statuspage.io/v1/pages/{page_id}/incidents with body as below. The component status is shown as "Operational" instead of Degraded Performance.  Not sure why!? I tried setting different values, none of them work.

{
"incident": {
"name": "Sample incident",
"status": "investigating",
"body": "Sample message",
"components": {
"component_id": "degraded_performance"
},
"component_ids": "b2t1x2dz246g"
}
}

 

1 answer

1 accepted

0 votes
Answer accepted
Zach Atlassian Team Apr 13, 2020

Hey Sandeep! 

 

This is because the "component_id" field within "components" will need to be replaced with the components id. The below sample should get you the result you're looking for - 

 

{
"incident": {
"name": "Sample Incident",
"status":"investigating",
"body": "Sample Message",
"components": {
"b2t1x2dz246g": "degraded_performance"
},
"component_ids": [
"b2t1x2dz246g"
]
}
}

True, got this sorted out after raising a support request with atlassian team. Unfortunately, documentation sample payload doesn't reflect this. https://developer.statuspage.io/#operation/postPagesPageIdIncidents

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...

904 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