there is an issue with the Convert macro through Rest API.
in the result of GET content, there are some Null fields
{
"version": { "number": 6 },
"title": "page with macro",
"type": "page",
"body": {
"view": null,
"export_view": null,
"styled_view": null,
"storage": {
"value": "<p><br /></p><p>new macro <br /><br /><ac:structured-macro ac:name=\"sr-choose-label-macro\" ac:schema-version=\"1\" ac:macro-id=\"ad9890dc-735d-46a8-8e0f-2282f284db3b\"><ac:parameter ac:name=\"title\">newone</ac:parameter><ac:parameter ac:name=\"descriptions\">test cloud side</ac:parameter><ac:parameter ac:name=\"button\">new</ac:parameter><ac:parameter ac:name=\"labels\">macro</ac:parameter></ac:structured-macro></p><p><br /></p>",
"representation": "storage"
},
"wiki": null,
"editor": null,
"editor2": null,
"anonymous_export_view": null,
"atlas_doc_format": null,
"dynamic": null
}
}
so when I call update content it returns this error:
{
"statusCode":400,
"message":"com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: com.atlassian.confluence.api.model.content.Content[\"body\"]->com.atlassian.confluence.rest.serialization.EnrichedMapDeserializer$NullIgnoringMap[\"view\"])"
}