Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

REST API create page return 500 No content to map to Object Edited


I want to export a tree of text nodes and build a page tree in the Confluence. I just started today to get to know REST API and got the first trouble. I'm using Ruby 3 and Excon for HTTP requests:

require 'json'
require 'excon'

site = ""
user = "me"
pass = "my_secret"

connection =, user: user, password: pass)

# reqest for all pages works perfectly
response = connection.get(path: "/wiki/rest/api/space/DEMO/content/page")
JSON.parse(response.body)["results"].each do |page|
puts "id: #{page["id"]}; title: #{page["title"]}"

# but here I got 500
# statusCode\":500,\"message\":\" No content to map to Object due to end of in
response =
path: "/wiki/rest/api/content",
headers: {
"Accept" => "application/json",
"Content-Type" => "application/json" },
data: JSON.generate(
"type" => "page",
"title" => "Ruby page",
"space" => {"key" => "DEMO"},
"status" => "current",
"body" => {
"storage" => {
"value" => "This is Ruby page",
"representation" => "view"

What is wrong with my parameters?

0 answers

Suggest an answer

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

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

344 views 2 6
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