Delete unit
DELETE/api/v1/workspaces/:workspaceId/units/:unitId
Required API-key permission: UNITS_UPDATE — Create, update, and delete units and unit conversions
Deletes a unit that no cocktail uses (ingredient volumes in this unit are removed) and regenerates the derived conversions.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Delete unit
Validation error
Missing or invalid credentials
Insufficient permissions
Unit not found.
UNIT_IN_USE: the unit is still used in cocktail recipes.