v2

latestOpenAPI 3.1.02026-07-267085761.0 MB
Card

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

successboolean

Indicates whether the request was processed successfully.

messagestring

A short, human-readable message describing the result of the request.

{"stackTrail":"components:schemas:CommonResponse:properties:data:anyOf","oasType":"schema","type":"unknown","title":"Data","description":"The main response payload, if applicable","nullable":true}
queryGeneratedTimenumber nullable

The Unix timestamp (in seconds) indicating when the response was generated.

Example response

{
  "success": true,
  "message": "Operation completed.",
  "queryGeneratedTime": 1718006400
}