Hello,
I am using confluence rest api and python module requests to create multiple pages in confluence.
I will have parent and child hierarchy of pages. I want to insert children display macro at parent page using rest api call.
code sample:
invpagebodyhtml = "<p><b>This page is published by automation tool.</b></p>"
create_page = json.dumps( { "type": "page", "title": "testing-notification", "space": {"key": "TEST"}, "ancestors": [{"id": 1234567}], "status": "current", "body": {"storage": {"value": invpagebodyhtml, "representation": "storage",}}, })
response = requests.request( "POST", URL, data=create_page, headers=headers,)
any help on how to include that macro here?
Thanks
Sukh