POST

Is Referenced Data Item


Checks whether a field in a referring item contains a reference to a specified item.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage All Data Resources
Manage Data Items
Read Data Items
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/wix-data/v2/items/is-referenced

Body Params
dataCollectionIdstringRequiredmaxLength 256

ID of the collection containing the referring data item.


referringItemFieldNamestringRequiredmaxLength 1000

Field to check for a reference to the item that may be referenced.


referringItemIdstringRequiredmaxLength 128

ID of the referring item.


referencedItemIdstringRequiredmaxLength 1000

ID of the item that may be referenced.


consistentReadboolean

Whether to retrieve data from the primary database instance. This decreases performance but ensures data retrieved is up to date even immediately after an update. Learn more about Wix Data and eventual consistency.

Default: false

Response Object
isReferencedboolean

Whether the specified reference exists.

Is item referenced
Request
cURL
Response
JSON
Errors

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

Did this help?