Hi there
I have created a forge macro and want to add the macro to my existing confluence pages using the REST API code using PostMan. However, the PostMan code I use is set using the JSON format body → storage → value : “This is sample page text”, with ‘Respresentation’ set to “wiki” see :-
However, how do I also add a Forge Macro Ive created using the JSON string fornat using ‘wiki’ representation?
"body" : {
"storage" : {
"value" : "This is sample page text",
"representation" : "wiki"
}
}
Looking at :-
https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-put
It appears REST API Version 2 Update Page allows for ‘PageNestedBodyWrite’. Will this allow me to write out say…
"body" : {
"storage" : {
"value" : "This is sample page text",
"representation" : "wiki"
},
"storage" : {
"value" : "<ENTER MACRO CODE>",
"representation" : "atlas_doc_format"
}
}
Thanks
Lee