Forum Discussion

6 Replies

  • Suchith ,

    You are looking at the right API document.

    Can you share the error to see what type of error you are getting.

    Also make sure you are using post call for using subscription API. Subscription API only be accessible through post call method.

  • Suchith's avatar
    Suchith
    Ace
    6 years ago

    Hi Prashant,

    {
    "response": {
    "status": "error",
    "error": {
    "code": 511,
    "message": "A required query string argument is missing."
    }
    }
    }

    I dont see any required parameter on the API documentation. Please let me know what required parameter we need to pass.

    Thanks

     

  • Suchith's avatar
    Suchith
    Ace
    6 years ago

    Parshant  Thanks.

    The board/subscription API documentation provides info only for global and self subscription. Is it possible to pick user and subscribe them for specific board.


  • ClaudiusH's avatar
    ClaudiusH
    Khoros Alumni (Retired)
    6 years ago

    You would need to switch context to that user and the issue a "/users/self" API call like to subscribe that user, e.g.

    <#assign result = rest("/${target}/id/${id}/subscriptions/users/self/add?subscription.type=email") />
  • Suchith's avatar
    Suchith
    Ace
    6 years ago

    ClaudiusH 

    Is it possible to perform this API call without switching context. Since we are planning to automate this process for some set of boards. 

    Thanks,