I am sending component_ids as a list during incident creation, but do not see the association on the statuspage. How do i confirm the association of a component with the incident ?
curl https://api.statuspage.io/v1/pages/xxx/incidents -H "Authorization: OAuth xxx" -X POST -d "incident[name]=yyy" -d "incident[status]=identified" -d "incident[body]=testing component association" -d "incident[component_ids]=["zzz"]
Hi there,
Would you mind testing the request as follows and let us know if you still experiencing any issues?
curl https://api.statuspage.io/v1/pages/Your_page_ID/incidents \
-H "Authorization: OAuth API_Key" \
-X POST \
-d "incident[name]=Incident name" \
-d "incident[status]=investigating" \
-d "incident[body]=Incident Body" \
-d "incident[component_ids]=comp_id2,comp_id2"
hi Rahul, I still see the incident under 'Past Incidents' section of the statuspage. I am trying to find the association of this incident with the component_id used during the incident creation. Here is the response on the curl command.
curl https://api.statuspage.io/v1/pages/xxx/incidents -H "Authorization: OAuth yyyy" -X POST -d "incident[name]=PE outage" -d "incident[status]=investigating" -d "incident[body]=testing components" -d "incident[component_ids]=["xxx"]
"components":[],"created_at":"2021-07-19T17:42:26Z","impact":"none","impact_override":null,"incident_updates":[{"id":"xxx","incident_id":"yyy","affected_components":null,"body":"testing components","created_at":"2021-07-19T17:42:26.077Z","custom_tweet":null,"deliver_notifications":true,"display_at":"2021-07-19T17:42:26.077Z","status":"investigating","tweet_id":null,"twitter_updated_at":null,"updated_at":"2021-07-19T17:42:26.077Z","wants_twitter_update":false}]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Syntax of -d "incident[component_ids]=["xxx"]" is incorrect. When i used -d "incident[component_ids]=xxx" it worked. This ticket can be closed.
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.