I am trying to use the new REST API v2, since v1 is now deprecated, but I have some major issues with it…
The version comment does not get applied
All Macros with a plain-text-body get the body removed (possibly with rich-text-body too but I have not tested this yet), THIS IS REALLY BAD.
It doesn’t seem to support the old editor format, it complains about malformed XML, which is basically the same storage it served me in the get page request?
Has anyone had success updating a page with Macros (old and new editor formats) using REST v2?
Hi,
I found the issue, had to do with js XMLParser, it replaced the markers around the CDATA[] block with HTML comments, so this <![CDATA[.....]]>, was returned by the parser as <!--[CDATA[...]]-->, so yeah, once I manually fix this, it all worked as expected.
Thank you very much @mr.chris.kent for sharing the solution.
I was looking into this as well and could successful update a page content containing the Expand Macro using the v2 REST APIs.
I’ll just share the payload here in case it might help others testing this in the future: