Unsubscribe through the REST API?
![]()
How do I unsubscribe someone from a workitem through the REST API? I imagine I need to pass it the itemId of both the workitem and the user, but I need the syntax. Or perhaps I can login (through the REST API, which I know how to do) and then pass it an "unsubscribe me" command, thus only needing the itemId of the workitem.
If someone can let me know the syntax, I will create a utility with a UI to make it happen. It will bring up a list of work items, check a bunch of them, then unsubscribe from the checked items. There is currently no feature in RTC for bulk unsubscribe, and it is sorely needed. |
2 answers
![]()
Have not venture into REST API for this yet, but found a way to unsubscribe in bulk: see Q 72836 (
Is there a way to unsubscribe to several items at once?) |
![]()
Well, I figured out how to get a list of subscribers for a specific work item:
https://SERVER:PORT/jazz/oslc/workitems/__mxaQCTEEeKyt8CTbweGrw/rtc_cm:subscribers Now how do I turn that into a subscribe or unsubscribe command for "{currentUser}" ? |