Add Images Route

Endpoint for registering multiple images by UUID and queuing tagging tasks to SQS.

Sync on purpose: every call inside add_images blocks (SQLAlchemy, boto3), so as an async handler a 50-image upload held the event loop for seconds and stalled every other request on the worker. FastAPI runs sync handlers in its threadpool.

post/addImages

Request body

imageIdsstring[] required
projectIdinteger required
photographerIdstring required
folderNamestring nullable
presetBrandTagsstring[] nullable
presetPersonalizedTagsstring[] nullable
presetPersonTagsstring[] nullable
presetGeneralTagsstring[] nullable
presetCustomCategoryTagsobject nullable
uploadLinkTokenstring nullable

Response

Successful Response

{"stackTrail":"paths:/addImages:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes