Creating pages using excerpts with REST API

rikiya_murakami June 15, 2021

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

 

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 17, 2021

Hello @rikiya_murakami,

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
AUG Leaders

Atlassian Community Events