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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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: is there a way to get just one page?

I'm trying out the example here to read a page of our doc from Confluence, but it gives me every page in the entire space, not just the page I want. What am I doing wrong? Here's my url:

http://mysite.com/confluence/rest/api/content?type=page&spaceKey=MYSPACEKEY&Title=My+Page&expand=body.view

2 answers

1 accepted

1 vote
Answer accepted
Davin Studer Community Leader Apr 01, 2015

In the URL Title should be title. It is case sensitive.

Thank you. The example I used shows it as uppercase, but the second example and the rest of the doc does in fact show it as lower. Thanks.

Davin Studer Community Leader Apr 01, 2015

If you're an Atlassian employee looking at this mind fixing the typo?

I used the correct case and it still returns all pages up to a limit, and that limit does not capture the page that I need.

1 vote
rrudnicki Atlassian Team Apr 01, 2015

Hello, 

 

Could you try the command below and let us know if it works?

curl -u admin:atlassian http://192.168.213.129:8090/confluence/rest/api/content/2457602?expand=body.storage | python -mjson.tool

 

You can get more examples on this link.

 

Regards, 

Renato Rudnicki

The example code in the documentation has a capital "T" for "title". I fixed that in my code and it works great now. Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

415 views 23 8
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