Skip to content

๐Ÿ“ท Upload Inspection Media

Endpoint: POST /api/solver/tasks/inspection/{report_id}/media/
Auth Required: โœ… Yes (Solver Bearer Token)
Content-Type: multipart/form-data


๐Ÿ“Œ Description

This endpoint allows an assigned solver to upload images or videos related to an inspection report.

Inspection media provides visual proof of the on-ground condition and supports administrative decision-making during task approval.

Media uploaded through this endpoint is linked specifically to the inspection report.


๐Ÿ” Authentication

Include the solver access token in the request header:


๐Ÿ”— Path Parameter

Parameter Type Required Description
report_id UUID โœ… Inspection report ID

๐Ÿงพ Request Body

Content-Type: multipart/form-data

Field Type Required Description
media file โœ… Image or video file
media_type string โŒ image or video (auto-detected if omitted)

โœ… Example Request

```http POST /api/solver/tasks/inspection/insp-456xyz/media/ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6... Content-Type: multipart/form-data