How do you create a page 'full-width' with api/v2/pages POST?

SiDawg
Contributor
May 1, 2023

I've seen posts about "'metadata': { 'properties': { 'content-appearance-draft': { 'value': 'full-width' }, 'content-appearance-published': { 'value': 'full-width' } }" but I think this only relates to deprecated Content API

I also see users can set the default to "full width" on creating new pages... and this ALMOST works: when i create manually it works, but when i create with API it is still initially "small", but when i edit it it automatically goes to full width... assumedly the "draft" behind it is being set to full width but not the published version? With 6000 pages to create this isn't really an option

 

3 answers

3 votes
Matteo Ferrari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 28, 2023

Maybe it is too late, anyway I was able to apply full-width by POST on:

 

https://sitti.atlassian.net/wiki/api/v2/pages/[PAGE-ID}/properties

 

with body:

 

{
    "key": "content-appearance-published",
    "value": "full-width"
}
SiDawg
Contributor
April 23, 2024

Thanks Matteo ill give that a try next time

Stefan Draber
Contributor
July 29, 2024

awesome, thanks a million @Matteo Ferrari - I was desperately searching for this solution for days!

1 vote
SiDawg
Contributor
May 17, 2023

Anyone?

0 votes
Wortho
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 25, 2023

+1 I'm looking for the same answer

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events