v2
latestOpenAPI 3.1.02026-07-267085761.0 MBCard
Add Card Image
Upload and associate two images with a card for the authenticated user.
This endpoint allows the user to upload two images for a specific card. The images are uploaded to S3, and the URLs are saved in the database.
Args: files (list[UploadFile]): A list of two uploaded image files. card_id (str): The ID of the card for which the images are being uploaded.
Raises: HttpException: If the number of images provided is not exactly two.
Returns: CommonResponse: A response object containing the updated card data with image URLs.
post/api/v1/card/add-card-image/{card_id}
Path parameters
card_idstring required
Response
Successful Response
Example response
{
"success": true,
"message": "Operation completed.",
"queryGeneratedTime": 1718006400
}