Forums

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

Add message when updating page via API

jc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2020

Hi there,

I am updating a confluence page using the API (Confluence module for Python) and I'd like to add a message for that version of the page  Do you know if it's possible? I cannot see anything in the documentation...

Python I am using currently:

confluence.update_page(page_id=pageID(), title=page, body=body, type='page', representation='storage', minor_edit=False)

Many thanks in advance

1 answer

1 vote
DPKJ
Community Champion
June 13, 2020

@jc  Welcome to the community!

I don't see any obvious solution here, but you can always use comment feature.

confluence.add_comment(page_id, text)
jc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2020

@DPKJ  - thanks for the tip. Just tested that and it works nicely! This may be what I have to resort to. This script checks user changes to the page and reverts them if they fail validation. The message needs the context of the specific version to make sense. I suppose I could include the page version in the comment but it's not ideal.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events