plone.restapi
plone.restapi copied to clipboard
Endpoint or parameter for setting the UID
If you are using plone.restapi for migrations then it is necessary to preserve the original UID (because they are used for references or links within rich text.
The best solution is likely to extract the uid
from a POST request. However a security with Modify Portal Content permission should not be able to mess up the original UID. Instead setting the UID should require higher rights like Manage Portal.
@zopyx +1. I think plone.restapi should set the UID on POST and PATCH requests for migrations (and check for the "Manage portal" permission. Shouldn't be hard to implement...
FYI: Workaround if anybody is looking for it: https://community.plone.org/t/how-to-retain-uuid-when-migrating-content-type/6913
is this still open?
Fixed on #1173