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

Trying to set a template to a page.

Hey guys.

AIM: There are some templates available on my companies confluence page.
I want to use 1 of them when I am making a page.

My Questions and What I have tried till now.
When making  a page with the REST API, I do not see any body parameter which I could use to set the template I would like to use.

2) If the template is indeed passed in the body parameter during page creation, do I need to find out the ID of the template I plan to use? 
I tried to find out the information about the template on my companies server by following this link.
But All I get is the following error!

Thank you for your time! I hope the question is well enough formatted for the reader.

1 answer

1 accepted

1 vote
Answer accepted

Hi @Sufficient Monk ,

There is no way to select a template while creating a page with REST API.

You can try to get the template in storage format, extract the storage format and add that to the body when creating the new page. If you want to add some own content during creation you can modify the storage format data.

There is an experimental API to get the template, here is a question I once had where it is explained.

Thank you so much for the real;ly quick answer. I was able to complete my task because of you. Good night. And hope you the best of luck!! 

Suggest an answer

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

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

975 views 7 42
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