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/
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.