Default_page reset by plone.restapi content creation

As part of a migration I create a /folder through plone.restapi and set its default_page using a custom REST endpoint...all working (checked by looking at manage_propertiesForm).
In a second step I create /folder/folder1 through plone.restapi and suddenly the defautl_page attribute has gone. The value of the default_page points to an object that has not been created so far. Is there something in Plone that would reset the default_page on the parent when creating a new content object inside?

it looks like so, what you suspected https://github.com/plone/Products.CMFDynamicViewFTI/blob/master/Products/CMFDynamicViewFTI/browserdefault.py#L147

1 Like

my 2c: I am not aware of anything in Plone or REST API that resets the default_page.

Plone Foundation Code of Conduct