POST

Replace Data Item References


Replaces references in a specified field of a specified data item.

This method replaces the existing reference or references contained in the field specified in referringItemFieldName within the data item specified in referringItemId. The method removes existing references and in their place it adds references to the items specified in newReferencedItemIds.

Note: If you pass an empty array in newReferencedItemIds, all existing references are removed.

Endpoint
POST
https://www.wixapis.com/wix-data/v2/items/replace-references

Errors

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

Did this help?