POST

Bulk Publish 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.

Publishes multiple pending drafts at once.

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

Notes:

  • Each successfully published draft is deleted; the published item now contains the draft's content.
  • Per-item NOT_FOUND is reported in the result when no pending draft exists for a given dataItemId.
  • The order of results matches the order of dataItemIds in the request.
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/publish-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?