Forums

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

Is there a rest api to post the page properties?

SheshaChandra June 6, 2018

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?

4 answers

0 votes
Chris Garstin June 11, 2025

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"
}
3. If the property is NOT already set, create it.
POST https://xxx.atlassian.net/wiki/api/v2/pages/[pageID]/properties/

Payload:
{
"value": "full-width",
"key": "content-appearance-published"
}

 

0 votes
Florian Royer
Contributor
January 25, 2024

Anybody successfully update a Page Property inside a page property macro using REST API?

0 votes
Pawel Marciniak May 27, 2021

@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?

That Which Is Not
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!
May 27, 2021

No luck I'm afraid!

0 votes
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2018
SheshaChandra June 7, 2018

@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.

charlie_gavins
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!
June 25, 2020

Shesha - any luck here?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events