Deletes the entity links for a given resource, entity type and entity. There are multiple endpoints available, depending on the entity type and whether or not you wish to delete for a specific entity (based on id).
This set of endpoints will delete all relationships for a given resource that are locations. Optionally, if a location ID is provided, it will only delete the link for the given ID.
DELETE ~/resources/:resource-id/relations/locations
DELETE ~/resources/:resource-id/relations/locations/:location-id
It is also possible, for a specfic location, to delete any links to menu items for that location, or for a specifc menu item, based on posId
DELETE ~/resources/:resource-id/relations/locations/:location-id/menu
DELETE ~/resources/:resource-id/relations/locations/:location-id/menu/:pos-id
The same is possible for Apps, with a set of endpoints available to delete all App relationships for a given resource. Optionally, if an App ID is provided, it will only delete the link for the given ID.
DELETE ~/resources/:resource-id/relations/apps
DELETE ~/resources/:resource-id/relations/apps/:app-id
POS vendors work the same way. Optionally, if a POS Vendor ID is provided, it will only delete the link for the given ID.
DELETE ~/resources/:resource-id/relations/vendors
DELETE ~/resources/:resource-id/relations/vendors/:vendor-id
Parameters
Examples
Request: Delete location relationships for a given resource
DELETE https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6/relations/locations
Response (204)
204 No Content.
Request: Delete a specific location relationship for a given resource
DELETE https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6/relations/locations/2X3b8q
Response (204)
204 No Content.
Request: Delete menu relationships for a given resource and location
DELETE https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6/relations/locations/2X3b8q/menu
Response (204)
204 No Content.
Request: Delete specific menu item relationships for a given resource and location
DELETE https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6/relations/locations/2X3b8q/menu/pizza
Response (204)
204 No Content.
Request: Delete app relationships for a given resource
DELETE https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6/relations/apps
Response (204)
204 No Content.
Request: Delete a specific App relationship for a given resource
DELETE https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6/relations/apps/123
Response (204)
204 No Content.
Request: Delete POS vendor relationships for a given resource
DELETE https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6/relations/vendors
Response (204)
204 No Content.
Request: Delete a specific POS vendor relationship for a given resource
DELETE https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6/relations/vendors/456
Response (204)
204 No Content.