Removes one or more references.
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 remove.
Information about the removed references.
Bulk action metadata.
curl -X POST \
'https://www.wixapis.com/wix-data/v2/bulk/items/remove-references' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"dataCollectionId": "albums",
"dataItemReferences": [
{
"referringItemFieldName": "songs",
"referringItemId": "37de298e-026d-4b2e-b87f-fbec11d53105",
"referencedItemId": "aafeaaf4-6192-4cc2-a79b-97ce0f1b3646"
},
{
"referringItemFieldName": "songs",
"referringItemId": "37de298e-026d-4b2e-b87f-fbec11d53105",
"referencedItemId": "e7fe3827-5102-470a-a10a-b6221dd0b4a9"
}
]
}'
{
"results": [
{
"action": "DELETE",
"referenceMetadata": {
"originalIndex": 0,
"success": true
}
},
{
"action": "DELETE",
"referenceMetadata": {
"originalIndex": 1,
"success": true
}
}
],
"bulkActionMetadata": {
"totalSuccesses": 2,
"totalFailures": 0
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.