Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we unwatch the notification when creating a new page through REST API?

Shaurya Chawla December 11, 2018

My automated script creates a page(POST call to create new page with content in a specific space.) every day for reporting on confluence. Does confluence cloud api have a way to  unwatch/disable sending notifications to confluence space users ; each time when a new page is created ?

I explored but couldn't find a lead here:  https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/
Can you point out an eg , if there is a possibility to include in request body?

1 answer

0 votes
Thomas Deiler
Community Champion
December 11, 2018

Dear @Shaurya Chawla,

why not? When you create a news page, you get the page ID in the response. Use this ID and fire a 

DELETE https://mycompany.com/rest/api/user/watch/content/<id>

So long

Thomas

Shaurya Chawla December 11, 2018

Thanks Thomas Deiler I did notice delete api but I was wondering if there is something I can include in the same request body when at the time of creation of page so users don't get notified each time automated script generate a new page(even though they are subscribed to the space). So some json object/key that I can use in request body for create a new page instead of doing a separate call. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events