This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a draft copy of a published data item in the corresponding {dataCollectionId}__drafts shadow collection.
The published item remains live and unchanged. To retract a published item and convert it to a draft in one step, use Unpublish Data Item instead.
Returns ALREADY_EXISTS if a draft already exists for this item. To check first, query the {dataCollectionId}__drafts collection before calling this method.
After creating the draft, edit it via Update Data Item or Patch Data Item against the {dataCollectionId}__drafts collection. To put the edits live, call Publish Data Item Draft.
Notes:
NOT_FOUND if no published item exists with the supplied dataItemId.You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.