how to create a confluence page from template via rest api

is it possible to create a confluence page from a template via rest api or other cmd tool?

2 answers

1 accepted

Currently there is not nice and clean solution for that. We used some workarounds but these were unstable and prone to get broken.

We raised a feature request at https://jira.atlassian.com/browse/CONF-37129 so please do not forget to vote it and to comment on it, explaining Atlassian how important is to add the minimal level of functionality for working with templates via REST.

Heey, can you tell me some of your workarounds please? I need a solution to create confluence pages from a template. Thank you!

Confluence REST API is in deep development yet. Please see the https://docs.atlassian.com/atlassian-confluence/REST/latest/#d3e120 for the list of possibilities. And as I see from the https://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/api/service/content/ContentService.html and https://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/api/model/content/Content.html - there are no hidden variables that could help with POST query (the only one is the metadata). If you need such kind of REST service - you can write / order your own that will extend needed functionality.

As for the other possibilities - please see https://answers.atlassian.com/questions/58952/page-from-template-using-xml-rpc-or-soap-api for the details

And as I see https://docs.atlassian.com/atlassian-confluence/latest/index.html?com/atlassian/confluence/rpc/soap/ConfluenceSoapService.html - there are no specific methods to work with templates.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

77 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you