Add to favorites
POST/api/auction/sign/:serviceCode
Add an auction to the user's favorites list.
Requirements:
- The auction must exist
- The user must belong to the owner company
- It must not already be in favorites
Actions performed:
- Create a record in the AuctionFavourite collection
- Associate the auction with the user and company
- Enables quick access to frequent auctions
Mandatory fields:
- serviceCode: Auction identifier. Format: 3 letters of origin, 3 letters of destination and 5 random alphanumeric characters (e.g.: VIGMURnT4FN).
- fav_name: Descriptive name for the favorite
Example request body:
{
serviceCode: ABC123,
fav_name: Madrid-Barcelona weekly
}
The response confirms the favorite creation.
Request
Responses
- 200
- 400
- 401
Favorite added successfully
Request error
Unauthorized