Forum Discussion

santosh_csc's avatar
7 years ago

How to subscribe a user to board as admin through API

I have to subscribe users to boards on behalf of them using API. How can I do it?

 

Below API is not working.

https://community.lithium.com/restapi/vc//boards/id/Collaboration/subscriptions/subscriptions/users/self/add?subscription.type=email&users.id=44&restapi.session_key=JZUCbfEGy-v_ChwWWogVF1M85Ya7dtt6aQL8YT0hllo.

How can I achieve this?

7 Replies

  • santosh_csc's avatar
    santosh_csc
    Guide
    7 years ago
    I'm not sure whether I'm calling API in right way or not.

    For above one, the error is,
    <response status="error">
    <error code="501">
    <message>
    Unknown path element at node &apos;node_subscription_context&apos;.
    </message>
    </error>
    </response>
  • santosh_csc's avatar
    santosh_csc
    Guide
    7 years ago
    When I pass subscription type alone, it will subscribe to me.
    Not to the user I wanted to.
  • HiteshKumar's avatar
    HiteshKumar
    Expert
    7 years ago

    You can manage only your own subscription.

    There is no such API to manage other user's subscription.

     

  • mkuehnkhoros's avatar
    mkuehnkhoros
    Ace
    5 years ago

    Is this still the case today? From what I've seen so far, you can only subscribe yourself to things, not other users.

    I have a use case where I need to use the API to subscribe other users to various things, and am looking for a solution.

  • Parshant's avatar
    Parshant
    Boss
    5 years ago

    Currently this is not possible to add subscription for other user using API or other way. Only API available is for self subscription.