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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add multiple subscribers via the API

Hello,

 

I got a question about the Statuspage API. I'm trying to import a list of subscribers via the API.

Is it possible to add multiple subscribers in a single API request?

My syntax at the moment looks like this:

{
"subscriber":{
"email": "some email",
"skip_confirmation_notification": "false",
"component_ids": [
"id1",
"id2",
"id3"
]
}
},
{
"subscriber":{
"email": "some mail 2",
"skip_confirmation_notification": "false",
"component_ids": [
"id1",
"id2",
]
}
}

With this input, I get a error 400 back. Also when I merge the second part with the contents in the first part it does not work. When I only use the first subscriber part it works fine.

Looking forward for the response.

-Ivo

1 answer

1 accepted

0 votes
Answer accepted
Rahul S Atlassian Team Jul 19, 2021

Hi there,

Our subscriber API currently creates only one subscriber at a time. If you wish to create multiple subscribers at time then you'd need to include a loop and call the API {# no of subscribers} times. This would involve custom scripting, which is something we do provide support for.

Might we suggest to use our import subscriber option from the Statuspage subscribers UI? You can find more info on the same: https://support.atlassian.com/statuspage/docs/import-subscribers-via-csv/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
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...

1,653 views 4 16
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