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

How to create page based on an existing template with rest api or using atlassian-python-api?

Mark I'm New Here Mar 28, 2021
What method should I use and where to find a data structure for such a request?

I have an idea to form html in the request body, but it doesn't seem like a good idea

My template looks like this

image.png

 

1 answer

Hi,

First of all I have to warn you that the solution below is for Confluence server. I don't know if it works for Confluence Cloud.

To create a page based in a template you can use the following URL a:

https://your_confluence_server/confluence_site_name/pages/createpage-entervariables.action?templateId=template_page_id&spaceKey=template_space_key&title=page_title&newSpaceKey=space_key_where_page_is_created&fromPageId=parent_page_id.

You can replace the full parameter title=page_title by only title if the page title is saved with the page (this is the default).

If the space is the same as the one where you have the template you can omit the parameter newSpaceKey

You can also omit the parameter fromPageId if the page you are creating is a child of the page where are currently located.

Hope it helps,

Vitor

Suggest an answer

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

Introducing Confluence Cloud for Microsoft Teams (Available for Preview!)

Hi Atlassian Community, Remote work has shifted how teams collaborate, and we’ve heard from many of you that Microsoft Teams has become mission critical to many of your workflows, from how you chat...

2,533 views 21 21
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