Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,925
Community Members
 
Community Events
165
Community Groups

Create Maintenance Event via API

Has anyone created maintenance posts to statuspage from the API?  The goal is to automate a webhook from JIRA or another tool for the purposes of change management.  I don't see anything about creating a maintenance post from the documentation, only incidents. 

1 answer

1 accepted

1 vote
Answer accepted

Hi @Joshua Aldridge 

Maintenances are a type of Incident when it comes to Statuspage. You'll need to call the 'Create an incident' API endpoint. You then have options to add in the scheduled dates/times, scheduled automation etc.

More information here: https://developer.statuspage.io/#operation/postPagesPageIdIncidents

Hope this helps.

Thanks,
Nick Coates
Statuspage Product Owner, Broadcom Inc.

@Nick Coates Can we have an example of scheduling Maintenance using "Create an incident" API

curl https://api.statuspage.io/v1/pages/<page_id>/incidents \ 
-H "Authorization: OAuth <API_KEY>" \
-X POST \
-d "incident[name]=fakemaintenance" \
-d "incident[status]=scheduled" \
-d "incident[body]=faking maintenance" \
-d "incident[scheduled_for]=2021-08-012T06:00:00.007Z" \
-d "incident[scheduled_until]=2021-08-012T08:00:00.007Z"

I am getting an error here

{"error":"incident[scheduled_for] is invalid, incident[scheduled_until] is invalid

This might be a small syntax issue, But it would be better to have an example for maintenance in official doc 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

3,053 views 8 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you