Upload Condition Report Photos
Upload photos to an existing condition report. Maximum 5 photos per report.
Endpointโ
POST /v1/condition-reports/{id}/photos
Path Parametersโ
| Parameter | Type | Description |
|---|---|---|
id | integer | Condition report ID |
Request Bodyโ
Send as multipart/form-data:
| Field | Type | Required | Description |
|---|---|---|---|
photos[] | file[] | Yes | Image files (JPEG, PNG, or WebP). Max 5MB each. |
Example Requestโ
curl -X POST "https://app.equipdash.com/api/v1/condition-reports/42/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photos[]=@scratch1.jpg" \
-F "photos[]=@scratch2.jpg"
Responseโ
Returns the updated condition report with all photos:
{
"data": {
"id": 42,
"booking_id": 123,
"inventory_log_id": 456,
"inventory_id": 78,
"product_id": 12,
"context": "return",
"condition": "damaged",
"condition_label": "Damaged",
"notes": "Deep scratch on hull",
"reported_by": {
"id": 5,
"name": "Sarah Marshall"
},
"reported_at": "2026-03-26T16:30:00Z",
"photos": [
{
"id": 1,
"url": "https://app.equipdash.com/storage/conditionReports/scratch1.jpg",
"order": 0
},
{
"id": 2,
"url": "https://app.equipdash.com/storage/conditionReports/scratch2.jpg",
"order": 1
}
],
"created_at": "2026-03-26T16:30:00Z"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-03-26T16:35:00Z"
}
}
Validationโ
- Maximum 5 photos per condition report (including previously uploaded)
- Accepted formats: JPEG, PNG, WebP
- Maximum file size: 5MB per photo
- If the report already has 5 photos, the request is rejected with a 422 error
Error Responseโ
{
"error": {
"code": "photo_limit",
"message": "This condition report already has the maximum of 5 photos."
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-03-26T16:35:00Z"
}
}