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

python : atlassian.errors.ApiValueError: No space or no content type, or setup a wrong version type

Vikrant Patnaik December 8, 2021

I am using confluence API (using python)to update an existing confluence page but I am facing the below error -

atlassian.errors.ApiValueError: No space or no content type, or setup a wrong version type set to content, or status param is not draft and status content is current

Strange thing is I was able to update the page before may be 10 times but its suddenly throwing an error . may be i am missing something?

Can anyone please suggest what is missing . I am using below snippet -

confluence = Confluence(url=confluence_url,username=userid,password=password)

status = confluence.update_page(page_id, title, pagecontent)

pprint(status)

1 answer

0 votes
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 24, 2021

Hi @Vikrant Patnaik

This post may be able to help you: Link: https://community.atlassian.com/t5/Confluence-questions/How-to-use-RESTfull-PUT-to-update-a-page/qaq-p/1215583

It has to do with the content version #.

Regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events