Forums

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

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

Vikrant Patnaik
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!
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 Champion
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