๐ท 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