Forum Discussion
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.
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
- Parshant7 years agoBoss
As mentioned in the document "subscription.type" is required for API.
Your API will be like below:
- Suchith7 years agoAce
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.- ClaudiusH7 years agoKhoros Alumni (Retired)
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") />