Skip to main content

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:

  1. Verifies that the favorite exists and belongs to the company
  2. Checks that there are no pending operations associated
  3. 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

Favorite removed successfully