Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine the layout when creating pages via rest api?

Adharsh Manikandan
Contributor
November 10, 2021

I'm using REST API to create confluence pages. 

But the content is occupying full width. When I create pages in confluence it's roughly 800px wide and in the center.

How to correct the page width or layout while posting plain HTML like <p>Hello</p> via rest API ?

1 answer

1 accepted

0 votes
Answer accepted
Darryl Lee
Community Champion
November 10, 2021

There's apparently are some undocumented metadata.properties you can use to set this:

  'metadata': {
    'properties': {
      'content-appearance-draft': {
        'value': 'full-width'
      },
      'content-appearance-published': {
        'value': 'full-width'
      }

Answer by Thomas Berger found in the Developer forums here which is probably a good place to look for API answers. :-}.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events