How can I pass the template id in creating confluence page json payload with template-rest API

PushpaKala Devi December 3, 2024

How can I pass the template id in create confluence page. Please advise me. I don't find any relevant document. 

It would be great if someone share the related document or direct solution for this. 

Thanks in advance

1 answer

1 accepted

2 votes
Answer accepted
Lucas Knorr
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2024

Hi @PushpaKala Devi

there is no endpoint which allows to create a page from template. 
The only way to achieve this is by making an GET request first, recieving the body of the page in storage format. Then you can create your new page with an POST request. 

The process is also described here: https://community.atlassian.com/t5/Confluence-questions/How-can-i-create-a-new-page-from-a-users-template-using-rest-api/qaq-p/1059884

PushpaKala Devi December 3, 2024

Thanks Lucas for the response. 

I already tried the alternate way, it works. But thought of checking if we have any simplified way of passing a template using template id as my template is having multiple comments with " and '. 

Lucas Knorr
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2024

Unfortunately there is no shortcut to this process. You might want to have a look at the marketplace. There are some plugins (also free ones), which allow creating pages from template (e.g. https://marketplace.atlassian.com/apps/1226632/create-from-template-pro-free?hosting=cloud&tab=overview).

PushpaKala Devi December 4, 2024

Thanks @Lucas Knorr 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events