POST

Bulk Unpublish Data Items


Developer Preview

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:

  • For each successfully unpublished item, the published copy is removed and a draft (seeded with the previously-published data) is created or, if a draft already exists, overwritten.
  • Per-item NOT_FOUND is reported in the result when no published item 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/unpublish

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?