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
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

278 views 9 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