Publish auction
PUT/api/auction/publish/:serviceCode
Changes the status of an auction from 'draft' to 'published', making it visible for bidding.
Requirements:
- The auction must be in 'draft' status
- It must have all valid dates (date_start, date_end, etl_date, etd_date)
- The user must be the owner or administrator of the company
Validations performed:
- Verifies that the auction exists and is editable
- Checks that the dates are consistent:
- date_start must be after the current date, or the same date but at least one hour later
- date_end must be after date_start, with a minimum of 4 hours difference
- etl_date must be between date_start and date_end
- Validates load dimensions (weight and height)
Usage example:
PUT /api/auction/publish/ABC123
The response includes the updated auction with 'published' status.
Request
Responses
- 200
- 400
- 401
Single Auction
Request error
Unauthorized