Forum Discussion
Tarun
5 years agoMaven
Hi Inactive User ,
You can look to use the subscriptions API over here to subscribe/unsubscribe a user to a label:
curl -X POST \
https://[COMMUNITY DOMAIN]/api/2.0/subscriptions \
-H 'content-type: application/json' \
-H 'li-api-session-key: [SESSION KEY]' \
-d '{
"data":{
"type":"subscription",
"target":{
"type":"label",
"id":"Mexico"
},
"board":{
"id":"vacationBlog"
}
}
}'
Please Give Kudos if you find this post useful and also mark this as Accepted Solution if this is the required solution.
Regards
Tarun Kumar
Related Content
- 12 months ago
- 2 years ago