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"
}
}
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.