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

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

How can I add metadata when creating a new page via REST API?

I'm using the Confluence REST API to create new pages. That works great but I now need to add some metadata to a new page and I'm having difficulty with how to do that. Based on the schema for content creation resource, I'm sending this payload in my POST call

'title': 'My Title',
'space': 'My Space',
'metadata': { 'userid': 'myid'},
'body': ...

Everything works except that when I go to read the page (expanding metadata), I don't see my metadata. All I get is something like this:

"metadata": {
"_expandable": {
"labels": "",
"frontend": "",
"currentuser": "",
"editorHtml": ""
"properties": {
"_links": {
"self": "https://<server>/rest/api/content/86945505/property"


I'm not sure what I'm missing. Should I be able to set my own metadata on the page? 

I do see the information about Content Properties but that requires an extra call after the page is created that I was hoping to avoid.

Thanks for any insight

1 answer

0 votes

Yes, I have the similar doubt

Suggest an answer

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

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

237 views 4 9
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