Delete auction
DELETE/api/auction/:serviceCode
Permanently delete an existing auction.
Requirements:
- The auction must be in 'draft' or 'planned' status
- The user must be the creator or administrator of the company
- It must not have associated bids or be published
Validations performed:
- Verifies that the auction exists and is deletable
- Checks that it has no associated bids
- Confirms that the user has permissions
- Deletes the record from the database
Usage example:
DELETE /api/auction/ABC123
The response confirms the successful deletion with the serviceCode.
Request
Responses
- 200
- 400
- 401
Auction deleted successfully.
Request error
Unauthorized