It appears that the solution to my scenario involves sending the inner content of the HTML body rather than the body as a whole.
So instead of sending:
{
"spaceId": "...",
"status": "current",
"title": "Interesting page title",
"parentId": "...",
"body": {
"representation": "storage",
"value": "<body><p>The page content</p></body>"
}
}
We’ll have to send:
{
"spaceId": "...",
"status": "current",
"title": "Interesting page title",
"parentId": "...",
"body": {
"representation": "storage",
"value": "<p>The page content</p>"
}
}