Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to update a page with Python using REST API?

Mayank Koli February 6, 2018

I am new with this confluence and want to update a confluence page automatically rather than manual effort. Can you suggest how to get start. 

4 answers

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 7, 2018

Dear @Mayank Koli,

I have no xp with this python lib. The title of your question suggested, that you know what to do in Python.

So long

Thomas

0 votes
Mayank Koli February 7, 2018

Hi Thomas, 


I tried with the example but it is giving error.

And my code is 

from confluence.client import Confluence
with Confluence("https://confluence.org.com/confluence",('user','abc')) as c:

        page = c.search("ID=10"

Error:

Traceback (most recent call last):
File "c:\PYTHONWORK\confluence\test1.py", line 4, in <module>
page = c.search("ID=10")
AttributeError: 'NoneType' object has no attribute 'search

0 votes
Mayank Koli February 7, 2018

Thanks Thomas for your resp....I will check it ....I have no idea about it...

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 6, 2018

Dear @Mayank Koli,

best you make use of the Python Confluence library.

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events