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

Is it possible to add components to an incident using the API?

Remy November 12, 2024

I've been experimenting with the API. I'm able to create and update incident status well enough, but I am having trouble adding and updating components to incidents. I tried to replicate what I saw on the documentation  but it doesn't seem to work 

 

example:

 

 

Statuspage API Documentation

{ 
"incident": {
"name": "{{issue.summary}}",
"status": "identified",
"impact_override": "minor",
"scheduled_auto_transition": true,
"components":{
"{{id1}}": "degraded_performance",
"{{id2}}": "degraded_performance",
"{{id3}}": "degraded_performance"
}
}
}

1 answer

0 votes
Kevin Paulovkin
Contributor
November 13, 2024

Use "component_ids" to associate the incident against a component(s) - see screenshot below.

"components" is for updating the status of the component(s).

Statuspage ComponentIDs.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events