Skip to navigation

Upload evidence photos for container

View as Markdown

Upload one or more evidence photos with optional notes for a container inspection. Supports multipart/form-data with multiple images (max 5 per request).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired

Container ID (MongoDB ObjectId, 24 hex characters)

Request

This endpoint expects a multipart form with multiple files.
imagesfilesRequired

One or more image files (JPEG/PNG, max 5MB each, max 5 files)

notesstringOptional<=1000 characters
Text notes describing the evidence
voiceNotesstringOptional<=2000 characters
Transcribed voice notes
capturedAtdatetimeOptional
ISO 8601 timestamp when photo was taken
latitudedoubleOptional
GPS latitude where photo was taken
longitudedoubleOptional
GPS longitude where photo was taken

Response

Evidence uploaded successfully
successbooleanOptional
dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
413
Content Too Large Error
415
Unsupported Media Type Error