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

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

How to update a page with Python using REST API?

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. 

1 comment

Dear @Mayank Koli,

best you make use of the Python Confluence library.

So long

Thomas

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

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

Thomas Deiler Community Leader Feb 07, 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

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

356 views 14 10
Read article

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