Skip to main content

Edit existing auction

PUT 

/api/auction/:serviceCode

Allows editing the details of an existing auction in 'draft' or 'published' status.Requirements:- The auction must exist and belong to the user's company- Only auctions in 'draft' or 'published' status can be edited- The user must have edit permissionsValidations performed:1. Verifies the auction exists and is editable2. Validates times and dates (etl_date < etd_date)3. Checks cargo dimensions (weight > 0, height > 0)4. Verifies load/unload addressesEditable fields:- etl_date: Load date/time- etd_date: Unload date/time- cargo_weight: Cargo weight (kg)- cargo_height: Cargo height (m)- etl_address/etd_address: Address IDs- description: Additional description- pallets_type: Pallets type- pallets_num: Number of palletsExample request body:json{ etl_date: 2025-08-15T08:00:00Z, etd_date: 2025-08-15T18:00:00Z, cargo_weight: 1500, cargo_height: 2.8, etl_address: 60a1b2c3d4e5f6a1b2c3d4e5, etd_address: 60a1b2c3d4e5f6a1b2c3d4e6, description: Urgent perishable goods shipment}The response includes the updated auction with the new values.

Request

Responses

Individual auction