Skip to main content

Add auction to favorites

POST 

/api/auction/favorites

Add an auction to the company's favorites list for quick access and tracking.Requirements:- The auction must exist and be visible to the company- It must not already be in favorites- The user must have edit permissionsActions performed:1. Creates a record in the AuctionFavourite collection2. Associates the auction with the company3. Enables filtering and quick access to frequent auctionsMandatory fields:- serviceCode: Unique identifier for the auction. Format: 3 letters of origin, 3 letters of destination, and 5 random alphanumeric characters (e.g., VIGMURnT4FN).- fav_name: Descriptive name to identify the favoriteExample request body:json{ serviceCode: ABC123, fav_name: Weekly Madrid-Barcelona Route, description: Recurring load on Mondays}The response includes the ID of the created favorite.

Request

Responses

Favorite created successfully