Updates multiple items in a collection.
Call this method when you need to replace the full payload of multiple existing items in one call. For different behavior, you can call:
action: INCREMENT_FIELD for atomic numeric increments or decrements, such as stock-count deltas. Don't try to express deltas with Bulk Update — replacing the full payload forces a client-side read-then-write that isn't atomic and produces incorrect results under concurrent writers.This method replaces each specified data item's existing data with the payload provided in the request.
Each item in the request must include an ID. If an item is found in the specified collection with the same ID, that item is updated. If the collection doesn't contain an item with that ID, the update fails.
When an item is updated, its data._updatedDate field is changed to the current date and time.
Note: After each item is updated, it only contains the fields included in the request. If the existing item has fields with values and those fields aren't included in the updated item, their values are lost.
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.