I'm currently implementing a StatusPage API integration for clients, I've managed to get all of the logic to create, manage, page users, groups etc - the issue I have is being able to unsubscribe via the API. I notice the docs show it as a curl that then deletes the subscriber, this seems like an oversight for case where the user simply wants to unsub from a single component?
Anyone figured it out?
Hey @Jack , I'm a product manager on Statuspage. It sounds like you want to use the REST API to update an existing subscriber to remove one of their subscribed components. You can do this by updating the subscriber via PATCH, as described here:
https://developer.statuspage.io/#operation/patchPagesPageIdSubscribersSubscriberId
The body of your request should contain an array of the components that should remain subscribed. So simply omit the undesired component from this list.
Hope this helps!
Fairly sure if I use patch it doesn't remove items from the list, the other concern I have is if I remove a single item from a sub list as a patch it then subs to all available components
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.