How to create page properties macro using REST API?

Nitesh yadav January 3, 2022

I am following the API reference given below:
https://developer.atlassian.com/cloud/confluence/rest/api-group-content-properties/#api-wiki-rest-api-content-id-property-post

But, the example is not well-crafted. I am not getting how to pass my content in the page properties macro and nothing present about "value" keyword.

Basically I want to create a Table as page properties in the confluence page so that I can link it to some other page. For testing purpose the payload that I am using is given below:

```

payload = {
        "key""spiderman_test1",
        "value":[],
        "body": {
            "storage": {
                "value""<p>Enjoy the API</p>",
                "representation""storage",
            }
        }
    }

```

But it didn't reflected any change on the actual page.

 

Please help me out in what should be the payload for this api. Thanks!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Dominic Lagger
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.
January 5, 2022
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events