This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Removes one or more item references from a referring field of the specified item.
ID of the referring collection.
Field ID of the field in the referring collection to remove references from.
References to remove.
Response must include either the removed reference or an error.
curl POST https://external-db.example.com/v3/items/remove-references \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Authorization: <AUTH>' \
--d '{
"collectionId": "cities",
"referringFieldKey": "pointsOfInterest",
"references": [{
"referringItemId": "c285e77c-a86b-4361-a55f-c6b934d70187",
"referencedItemId": "faa17edb-2d88-488d-8e95-24b9364c3284"
}]
}'
{
"results": [
{
"reference": {
"referringItemId": "c285e77c-a86b-4361-a55f-c6b934d70187",
"referencedItemId": "faa17edb-2d88-488d-8e95-24b9364c3284"
}
}
]
}