Is there a way to add or delete watchers from a page in Confluence using the REST API? I can't seem to find anything related to watchers in the API documentation. I expanded all of these methods and searched for "watcher" and found only one instance that doesn't apply to adding or removing watchers.
Community moderators have prevented the ability to post new answers.
Hi @Mark,
there is a (private) REST endpoint for this, which support the methods GET, POST and DELETE. The parameter contentId is required for each method.
prototype/1/content/{contentId}/watches
Best regards,
Robert
Is there documentation around this somewhere for the prototypes?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think so. "private" usually means, undocumented and/or subject to change.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then how did you get it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Development instances come with the Confluence REST-Api Browser, which lets you browse and test all REST-endpoints registered in the running Confluence instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Robert Krause, Could you please give the sample url for the (private) REST end point to add watchers to a page
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sateesh Jarugumalli You mean, like the url in the post you are replying to? What else do you need?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Robert Krause, thank you for the reply. I was able to achieve this functionality with the Soap call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.