It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Rest API how to disable page creation/update notifications


I am using confluence rest api and python module requests to create multiple pages in confluence. my tool has to run every day and delete old pages and create new pages with details. 

problem is while it creates new page it also send notification to the watcher of space. I do not want to send notification to watcher of space for new page creation.. 

code sample: 

invpagebodyhtml = "<p><b>This page is published by automation tool.</b></p>"
create_page = json.dumps(    {        "type""page",        "title""testing-notification",        "space": {"key""TEST"},        "ancestors": [{"id"1234567}],        "status""current",        "body": {"storage": {"value": invpagebodyhtml, "representation""storage",}},    })


response = requests.request(    "POST", URL, data=create_page, headers=headers,)

it creates the page but I could not find way to disable notification at time of page creation. 

As per my research on internet, I found which says feature is not supported for page creation however minorEdit : true can be used for disabling notification for update on pages which I am looking for. 

any help here please? 



1 answer

1 accepted

0 votes
Answer accepted
Daniel Eads Atlassian Team Mar 06, 2020

Hey Sukh,

I can confirm that there's currently no notification suppression for page creation via API in Confluence Cloud. You can get more details about the feature request on our public Jira:

Thinking about your request, I have two ideas on how to stop the notifications:

  1. Do you need to delete the old pages and create new ones, vs simply updating the existing pages? If you could update the pages instead, you could make use of the 
    "minorEdit" : true

    parameter which would suppress notifications. If there's not a strong reason to delete the pages, this would be the easier approach.

  2. If these new pages all have the same parent, you could restrict the parent page while your script is running. As these new pages would be created in a restricted section, notifications would not be triggered for users without access. Your script would need to do the following:
    1. Restrict the parent page (Restriction call in the REST API) to be only visible to the user running the script
    2. Do the current delete/create process you have in your existing script
    3. Un-restrict the parent page

Although not as straightforward as just adding a parameter for page creation, I think you can get your desired results using one of these two methods.


Thanks Daniel. We could suppress it by throwing users out of watching of space :) 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,532 views 6 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you