Publish auction
PUT/api/auction/publish/:serviceCode
Change 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 companyValidations performed:1. Verifies that the auction exists and is editable2. Checks that the dates are consistent: - date_start must be after the current date, or the same date but one hour later - date_end must be after date_start, with a minimum of 4 hours - etl_date must be between date_start and date_end3. Validates load dimensions (weight and height)Usage example:PUT /api/auction/publish/ABC123The response includes the updated auction with 'published' status.
Request
Responses
- 200
- 400
- 401
Individual auction
Request error
Unauthorized