Removes the specified reference from the specified field.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the collection containing the referring item.
Reference to remove.
Removed reference.
curl -X POST \
'https://www.wixapis.com/wix-data/v2/items/remove-reference' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"dataCollectionId": "albums",
"dataItemReference": {
"referringItemFieldName": "songs",
"referringItemId": "37de298e-026d-4b2e-b87f-fbec11d53105",
"referencedItemId": "aafeaaf4-6192-4cc2-a79b-97ce0f1b3646"
}
}'
{
"dataItemReference": {
"referringItemFieldName": "songs",
"referringItemId": "37de298e-026d-4b2e-b87f-fbec11d53105",
"referencedItemId": "aafeaaf4-6192-4cc2-a79b-97ce0f1b3646"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.