Remove auction from favorites
DELETE/api/auction/favorites/:id
Permanently remove an auction from the company's favorites list.
Requirements:
- The favorite ID must exist in the database
- The user must belong to the owner company
- There must be no pending operations associated with the favorite
Validations performed:
- Verifies that the favorite exists and belongs to the company
- Checks that there are no pending operations associated
- Permanently deletes the record
Differences with PUT:
- Permanent deletion vs update
- No request body required
- Cannot be undone
Usage example:
DELETE /api/auction/favorites/60a1b2c3d4e5f6a1b2c3d4e5
The response includes confirmation and deletion metadata.
Request
Responses
- 200
- 400
- 401
Favorite removed successfully
Request error
Unauthorized