You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.