I created an incident via UI with one affected component. I try to update the created incident with another affected component using the API with:
PATCH https://api.statuspage.io/v1/pages/zwf0tpq2bpq9/incidents/5s2f7k64t577
Authorization: OAuth A_TOKEN
Content-Type: application/json
{
"incident": {
"component_ids": [
"5s2f7k64t577", "41x1dbs0hqkd"
]
}
}
The response contains only the initial affected component:
{
"id": "5s2f7k64t577",
"components": [
{
"id": "41x1dbs0hqkd",
"page_id": "zwf0tpq2bpq9",
"group_id": "qkht63js76v0",
"created_at": "2023-07-14T09:46:46Z",
"updated_at": "2023-11-27T08:37:17Z",
"group": false,
"name": "Banking API",
"description": null,
"position": 2,
"status": "partial_outage",
"showcase": true,
"only_show_if_degraded": false,
"automation_email": "component+18ff1006-86db-4712-82fd-7ebfbf73439e@notifications.statuspage.io",
"start_date": "2023-07-14"
}
],
"created_at": "2023-11-27T09:45:51Z",
"impact": "major",
"impact_override": null,
"incident_updates": [
{
"id": "x8d7g3bm46y8",
"incident_id": "5s2f7k64t577",
"affected_components": [
{
"code": "41x1dbs0hqkd",
"name": "APIs - Banking API",
"old_status": "partial_outage",
"new_status": "partial_outage"
}
],
"body": "We are currently investigating this issue.",
"created_at": "2023-11-27T09:45:51.416Z",
"custom_tweet": null,
"deliver_notifications": true,
"display_at": "2023-11-27T10:45:51.416+01:00",
"status": "investigating",
"tweet_id": null,
"twitter_updated_at": null,
"updated_at": "2023-11-27T09:45:51.416Z",
"wants_twitter_update": false
}
],
"metadata": {},
"monitoring_at": null,
"name": "Partial outage of some components (TEST)",
"page_id": "zwf0tpq2bpq9",
"postmortem_body": null,
"postmortem_body_last_updated_at": null,
"postmortem_ignored": false,
"postmortem_notified_subscribers": false,
"postmortem_notified_twitter": false,
"postmortem_published_at": null,
"resolved_at": null,
"scheduled_auto_completed": false,
"scheduled_auto_in_progress": false,
"scheduled_for": null,
"auto_transition_deliver_notifications_at_end": null,
"auto_transition_deliver_notifications_at_start": null,
"auto_transition_to_maintenance_state": null,
"auto_transition_to_operational_state": null,
"scheduled_remind_prior": false,
"scheduled_reminded_at": null,
"scheduled_until": null,
"shortlink": "https://stspg.io/9gcb2nr4wsm4",
"status": "investigating",
"updated_at": "2023-11-27T11:25:03Z",
"reminder_intervals": null
}
I would expect that the response (and the UI) show the additional affected component.
Hey Rico, Alan from the Statuspage Support team here.
Taking a first look, your request does look correct, and it should be updating the incident components - I was not, however, able to replicate the issue on my end.
Could you please create a support ticket at https://support.atlassian.com/ so we can further investigate and try to assist?
Regards,
Alan
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.