Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Confluence Update Page Using REST API not working.

I'm using CURL and following the example in the link below to update a confluence page using Confluence REST API but get an error in the response. I'm able to successfully perform other REST operations such as GET PAGE and UPLOAD ATTACHMENT.



* Mark bundle as not supporting multiuse
< HTTP/1.1 415 Unsupported Media Type

Command Syntax below (I have replaced actual values with uppercase text for some parameters)


curl -v -u ID@SITE:TOKEN -X PUT -H 'Accept:application/json' -H 'Content-Type:application/json'  -d '{"id":"NUMBER","type":"page","title":"SAMPLE","space":{"key":"XYZ"},"body":{"storage":{"value":"<p>This is the updated text for the SAMPLE</p>","representation":"storage"}},"version":{"number":2}}' "SITE_URL/wiki/rest/api/content/NUMBER"

Any help is appreciated. 



0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

186 views 1 3
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