This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retracts multiple published data items back to draft state.
This method unpublishes each item independently and supports partial success: if some items cannot be unpublished, the remaining ones are still processed. For each item, the response includes an entry in results with success/error details. Use results.itemMetadata.originalIndex to correlate response entries with the request's dataItemIds.
Set returnEntity to true to include the resulting drafts in the response.
Notes:
NOT_FOUND is reported in the result when no published item exists for a given dataItemId.results matches the order of dataItemIds in the request.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.