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

Add multiple subscribers via the API

ServicedeskS July 15, 2021

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

1 vote
Answer accepted
Rahul S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events