Hello,
I'm developing python script which creates more pages in confluence cloud.
I want to add on the pages two nested macros (macro status and macro note)
I have tried like this

and this is how i define the body of the rest api call.
data = { 'title': subject, 'spaceId': space_key, 'body': { 'storage': { 'value': full_body, 'representation': 'storage' } }, 'metadata': { 'labels': confluence_labels } }
When i try to run the script i get error
500 {"errors":[{"status":500,"code":"INTERNAL_SERVER_ERROR","title":"Internal Server Error","detail":null}]}
Can someone give me idea how to solve this? Just to mention If i try to add the macros one by one ( not nested) the script works ok .
Thank you in advance