I've successfully used the Confluence Rest API to create a page and attach it to a Space. MY json looks much like that from the example:
{
"type":"page","title":"My Example Page 1", "space": {"key":"DAT"},
"body":{"storage":{"value":"<p>This is a new page</p>","representation":"storage"}}
}
If I create a page interactively in Confluence, I'm given a list of canned macros when I click the 'Edit' button like 'Attachments' or 'Activity Stream'.
What is the right json value to create a page with the Attachments Macro as the body instead of 'This is a new page'?
Something like below (which is totally made up):
{
"type":"page","title":"My Example Page 1", "space": {"key":"DAT"},
"body":{"storage":{"value":"**Attachments_Macro_Block**","representation":"storage"}}
}
What would I substitute for 'Attachments_Macro_Block' in the json to get the resultant page to display the macro block?