Forums

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

REST API V2 - Is it possible to create a page with full page width via POST - wiki/api/v2/pages/id

Abhishek Kalamkar April 11, 2025

{

"id": {{123}},

"status": "current",

"title": "{{issue.summary}}",

"body": {

"storage": 

Value": 

},

  

},

"metadata": {

"properties":

{ "editor": {"value":"v2"}, "

content_appearance_draft": { "value": "full-width" },

"content_appearance_published": { "value": "full-width" } } }

}

 

 

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

 

This will create page but in fixed width but not in full width. 

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
April 11, 2025

Based on the JSON you pasted, to me it seems that the editor layout is not controlled by the page content itself, but the page properties!

I mean this part:

..

"properties":
{
"editor": {"value":"v2"},
"content_appearance_draft": { "value": "full-width" },
"content_appearance_published": { "value": "full-width" }
}

...

You can simply try modifying these properties with e.g. Postman and the REST API.

If my assumption is correct, it means you should add the corresponding content properties to the page after you created the page. Use this simple REST API endpoint for that: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties/#api-pages-page-id-properties-post

Suggest an answer

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

Atlassian Community Events