I'm seeing some odd behavior with the SaaS CMS REST API with regard to "Visual Builder" content (sections/rows/columns and the elements within them). When there's Visual Builder content in a page, and I make any requests to either the "Update Version" or "Create Version" endpoint for the page (regardless of the request body), the Visual Builder content completely disappears from the page. It disappears regardless of whether I include "UnstructuredData" and "Layout" properties in the "properties" object of the request body ("UnstructuredData" and "Layout" are the properties corresponding to Visual Builder content that can be seen when you retrieve page version content of a page)
The API endpoints which seem to cause the Visual Builder content to be deleted:
Update Version - PATCH /_cms/preview2/content/{key}/versions/{version} https://docs.developers.optimizely.com/content-management-system/v1.0.0-CMS-SaaS/reference/content_patchversion
Create Version - POST /_cms/preview2/content/{key}/versions https://docs.developers.optimizely.com/content-management-system/v1.0.0-CMS-SaaS/reference/content_createversion
Let me know if there's any other relevant information I can provide or anything that's unclear. I'd appreciate any help that anyone can provide with this. Thank you!
Hi everyone,
I'm seeing some odd behavior with the SaaS CMS REST API with regard to "Visual Builder" content (sections/rows/columns and the elements within them).
When there's Visual Builder content in a page, and I make any requests to either the "Update Version" or "Create Version" endpoint for the page (regardless of the request body), the Visual Builder content completely disappears from the page.
It disappears regardless of whether I include "UnstructuredData" and "Layout" properties in the "properties" object of the request body ("UnstructuredData" and "Layout" are the properties corresponding to Visual Builder content that can be seen when you retrieve page version content of a page)
The API endpoints which seem to cause the Visual Builder content to be deleted:
Update Version - PATCH /_cms/preview2/content/{key}/versions/{version}
https://docs.developers.optimizely.com/content-management-system/v1.0.0-CMS-SaaS/reference/content_patchversion
Create Version - POST /_cms/preview2/content/{key}/versions
https://docs.developers.optimizely.com/content-management-system/v1.0.0-CMS-SaaS/reference/content_createversion
Let me know if there's any other relevant information I can provide or anything that's unclear.
I'd appreciate any help that anyone can provide with this. Thank you!