{
"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.
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.