Post

Replace Data Item References


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

This endpoint replaces the existing reference or references contained in the field specified in referringItemFieldName within the data item specified in referringItemId. The endpoint 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.

Permission Scopes

For app development, you must have one of the following permission scopes:
Write Data Items
Learn more about permission scopes.
Endpoint
POST
https://www.wixapis.com/wix-data/v2/items/replace-references

Was this helpful?
Yes
No