Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I am using the Confluence REST API for our Server installation in VBA macros to update (change or add) attachments to Confluence pages and to edit the page content.
Everything works fine but currently I have many subsequent API calls to a given page each of which triggers a notification e-mail to all people watching the page.
Is there an option in the API that I can use to use the "save" instead of the "save and notify" option?
Alternatively, is there a way to combine multiple calls to a given page so that they are all done together?
Community moderators have prevented the ability to post new answers.
Hello Rosario,
Using the Confluence API allows for easier integration and awesome amounts of automation. When you’re editing multiple (hundreds of pages) at a time, and all those watches get notifications it can be painful to deal with. I have experienced the exact issue you are trying to avoid when bulk updating/automating.
There is a feature request to give you additional functionality to disable notifications of watchers. That Feature request can be found at CONFSERVER-38804 for server and for cloud CONFCLOUD-38804. If you are interested in seeing these feature become part of the product then we would suggest you vote and watch them to receive updates as they progress.
There is a way to disable notifications upon updating content. The work around is from the server feature request and it states the following:
Suppressing notifications upon updating a content via REST is already supported. You currently have to supply a version with an incremented number in the request payload. Add the "minorEdit" field to the
The version payload also supports minor edits and comments as follow
"version" : {
"number" : incrementedFromPrevious,
"minorEdit" : true,
"message" : "some version comment to keep on the content history"
}
As stated above, without the work around, watchers of a space/page will be notified on creation/update of content.
I hope this clarifies the capabilities of the Confluence REST API along with a possible work around to your problem.
Regards,
Stephen Sifers
Is there a similar workaround also for adding or updating attachments?
Forget the question this is already possible in the API call itself...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rosario De Domenico How do you disable notification when uploading or deleting attachments? The minorEdit thing does not seem to apply there.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the REST API call itself, you can use the option "-F minorEdit=true" which does the job.
It works for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
with the minorEdit =True option like below:-
"version": {
"number":41,
"minorEdit" : "true",
},
Watchers are still getting email about content changes. THough emails were sent after some delay :). It would be helpful if someone guide in this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This strange, on updates in Cloud, I seemed to have turned off notifications with "minorEdit" set to False.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(Also posted on:
)
Thanks guys > did the same thing (remove watchers).
This was an issue for us when we were only updating attachments via API (vs content with a body).
Tried with both:
"minorEdit" : True
and
"minorEdit" : False
included in API call data field, and it would still notify watchers via email.
Solution was to remove all watchers, update attachments, and the re-add the watchers back to affected pages.
Resources:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With the minorEdit =True option like below:-
"version": {
"number":41,
"minorEdit" : "true",
},
Watchers are still getting email about content changes. THough emails were sent after some delay :). It would be helpful if someone guide in this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do we prevent notifications when creating a new page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.