Forum Discussion

ryanplant-au's avatar
8 years ago

Can you add or remove a single subscription for auser?

The v1 REST API lets you remove all of a specified user's subscriptions with one call, but I'm looking to remove a specific individual one.

 

Failing that, I'd be happy to remove all then add specific subscriptions back, but I don't see that documented either. 

 

Is either option a possibility?

  • DougS's avatar
    DougS
    Khoros Oracle

    You can remove an individual subscription for the current user (users/self) by making the REST V1 /subscription/remove call -- example:

     

    /community-name/restapi/vc/messages/id/[id] /subscriptions/users/self/type/float/remove

     

    There is not a specific call to remove a specific subscription for a given user (other than the user making the api call). If you could make an API call on behalf of that user (for example by using OAuth 2.0 authentication via api.lithium.com).

     

    If this is a one-off, an admin or mod could switch user and remove the subscription via the UI.

     

    -Doug