Create
cancel
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

Creating pages using excerpts with REST API

Is it possible to create a page using excerpts with the REST API? Please tell me how to do it.

 

1 answer

0 votes

Hello @村上力哉,

Thank you for raising this question in the Community! You can follow this guide on creating and updating content using the Confluence Cloud REST-API. You would need to create the page first and then update the content. In the content body, you can use the wiki markup example from the Excerpt macro documentation.  

You can find additional parameters at the bottom of that page. I'll include the example below.

{excerpt:hidden=true|atlassian-macro-output-type=BLOCK}
This is the *text* I want to reuse in other pages. This text is inside an Excerpt macro.
{excerpt}

I hope that helps, but feel free to raise a question with the Atlassian Developer Community if you need further assistance!

Take care,

Shannon

Suggest an answer

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

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

464 views 18 16
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