Unable to get watches for newly created page through REST API

Volodymyr Batrukh March 24, 2020

I have a user A who is subscribed to wach all the content in the space.

But whenever new page has been added (by some another user B) to the space I cannot find the user A in the list of wachers of the page using Confluence Cloud REST API call:
GET /wiki/rest/api/content/{id}/notification/child-created

When you navigate to the newly created page under user page A, you will find user A waching the page.
Is this an API issue? How can I get the waches of the page for new pages?

1 answer

1 accepted

0 votes
Answer accepted
Volodymyr Batrukh April 1, 2020

I found solution to my case. I need to use another endpoint to get watchers for the space: GET /wiki/rest/api/content/{id}/notification/created

So to get ALL watchers of the page a need to call
GET /wiki/rest/api/content/{id}/notification/child-created
and
GET /wiki/rest/api/content/{id}/notification/created

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events