Upload Asset

Upload an image asset for a project. The image is uploaded to CDN and processed with AI to generate name and description.

Args: project_id: Project ID to associate the asset with file: Image file to upload current_user: Authenticated user db: Database session

Returns: Asset data with AI-generated name and description

post/api/projects/{project_id}/assets/upload

Request

  • Base URL: https://api.latted.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.latted.com/api/projects/{project_id}/assets/upload
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

project_idstring required

Response

Successful Response

successboolean

Changes

No recorded changes to this operation across all 20 revisions of this API.