Delete Items
Unlike updating items on a recommendation - which uses the item spec - they are deleted by their unique id.See the Recommendation Item Object documention for details.
Multiple items can be passed in the array of item ids as a query parameter: ?id[]=...&id[]=...
Items that do not exist will be siltently ignored.
Return
This call returns the entire recommendation object from which the items were deleted.
API
DELETE
/V1/dispensary/recommendation/:recommendation_id/item
curl --location -g --request PUT 'https://{{api_host}}/rest/{{scope}}/V1/dispensary/recommendation/6e6e08cf-e2a0-4e0e-9359-e2e42896b56/item?id[]=54dddeea-19d6-4914-8b52-4064f050737c' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}'