POST

Bulk Create Data Item Drafts


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates draft copies of multiple published data items in the corresponding {dataCollectionId}__drafts shadow collection.

This method creates each draft independently and supports partial success: if some drafts cannot be created, 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 created drafts in the response.

Notes:

  • The published items remain live and unchanged.
  • Per-item NOT_FOUND is reported in the result when no published item exists for a given dataItemId.
  • Per-item ALREADY_EXISTS is reported in the result when a draft already exists for a given dataItemId.
  • The order of results matches the order of dataItemIds in the request.
  • Calling this method triggers a Data Item Created event on the drafts shadow collection for each created draft.
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permission Scopes
Write Data Items
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/wix-data/v2/bulk/items/create-drafts

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?