Is it possible to watch a page AND the descendants through the Confluence REST API?
The UI has an option to watch with descendants, but I do not see the option to include descendants when calling the /rest/user/watch/space/{spaceKey} API.
The UI only shows this option, because you have the app "ScriptRunner for Confluence" installed. Out of the box, this isn't an option in confluence.
Bug with ScriptRunner installed, you can use their API. For watching descendants, you can call this:
https://<<URL>>/rest/scriptrunner-confluence/descendants/latest/watch?pageId=<<pageId>>
It is a PUT operation with the pageId as a parameter.
I found this option with the chrome dev tools by clicking the "Watch descendants" button and analyse the REST calls.
Regards, Dominic
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.