After some research, i was able to find a way to get the page properties with the below command "/rest/masterdetail/1.0/detailssummary/lines?spaceKey=$spacekey&cql=label=$label"
Is there a rest api which i can use to post the page properties?
Hi,
you can use https://developer.atlassian.com/cloud/confluence/rest/#api-content-id-property-key-put (for cloud) and https://docs.atlassian.com/ConfluenceServer/rest/6.9.1/#content/{id}/property-update (for server).
@Aleksandr Zuevich, Thanks for the reply. But the links you have provided above, are for the content properties.
We have a macro as "Page Properties", and i'm trying to find an rest api for that. I was able to get the rest api for "GET", but not able to find the "PUT/POST" rest api.
Shesha - any luck here?
@charlie_gavins Were you able to do this? I thought that I achieved it but when I add a macro it overwrites the whole page content.
Is there a way to add Page Property Macro without overwriting current page content?
No luck I'm afraid!
Anybody successfully update a Page Property inside a page property macro using REST API?
There's a number of threads on this topic, sometimes confusing the "Page Properties" macro with the underlying page properties themselves.
IF someone is interested in setting the underlying page properties, which I assume will be reflected in the macro, I have discovered how to do this myself.
Warning: This methods uses exclusively undocumented APIs.
The example below set's the page to full-width display.
1. Get the properties of the page:
GET https://xxx.atlassian.net/wiki/api/v2/pages/[pageID]/properties
2. If the property is already set, update it. You must increment the property version:
PUT https://xxx.atlassian.net/wiki/api/v2/pages/[pageID]/properties/[property ID]Payload:{"version": {"number": [incremented version number],"createdAt": "2025-06-11T18:30:59.627Z"},"value": "full-width","key": "content-appearance-published" }
POST https://xxx.atlassian.net/wiki/api/v2/pages/[pageID]/properties/Payload:{"value": "full-width","key": "content-appearance-published" }
It looks like you're new here. Sign in or register to get started.