Inserts one or more references in the specified fields of items in a collection.
This method adds one or more references to a collection.
Each new reference in the dataItemReferences
field specifies a referring item's ID, the field in which to insert the reference, and the ID of the referenced item.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the collection containing the referring items.
References to insert.
Whether to return the inserted data item references.
When true
, the results
objects contain a dataItemReference
field.
Default: false
Information about the inserted references.
Bulk action metadata.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.