The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

StatusPage API - Unable to Update Components Status when Creating an Incident

Nivi Mor
August 27, 2025

I'm trying to create an incident using the the StatusPage API. I'm getting the error:

{"error":"incident[components] is invalid"}

I'm attaching my script below but the crucial part is the payload which looks like this:

data = {
"incident[name]": "test",
"incident[impact_override]": "critical",
"incident[status]": "investigating",
"incident[body]": "test",
"incident[component_ids]": ["xxx"],
"incident[components]": {"xxx": "degraded_performance"}
}

No matter what I do or what I try, it won't work.

 

import requests

# Replace with your actual page ID and API key
page_id = "xxx"
api_key = "xxx"

url = f"https://api.statuspage.io/v1/pages/{page_id}/incidents"

# Data to send in the POST request
data = {
"incident[name]": "test",
"incident[impact_override]": "critical",
"incident[status]": "investigating",
"incident[body]": "test",
"incident[component_ids]": ["xxx"],
"incident[components]": {"xxx": "degraded_performance"}
}

# Headers with Authorization
headers = {
"Authorization": f"OAuth {api_key}"
}

# Send POST request
response = requests.post(url, headers=headers, data=data)

# Print response
print(response.status_code)
print(response.text)

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Nivi Mor
August 28, 2025

Found the answer here.

 

To change a component status the payload should look like this:

data = {
"incident[name]": "test",
"incident[impact_override]": "critical",
"incident[status]": "investigating",
"incident[body]": "test",
"incident[component_ids]": ["xxxx"],
# list your components here one by one with their status
"incident[components][xxxx]": "degraded_performance",
"incident[components][xxxx]": "degraded_performance"
}
0 votes
Aditya Bodke
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2025

Thanks so much for sharing your solution with the community, Nivi! 🎉

 

Your willingness to post what worked not only helps others find answers faster, but also makes our community stronger. We appreciate you taking the time to give back and keep the momentum going. 

 

Regards,
Aditya

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events