Update Damage Report
Update an existing damage report.
Endpoint
INFO
PUT /api/v1/dashboard/damages/{damage}
Headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
damage | integer | Damage report ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | Damage type |
location | string | No | Damage location |
severity | string | No | Severity level |
description | string | No | Description |
estimated_cost | decimal | No | Estimated repair cost |
notes | string | No | Internal notes |
Example Request
bash
curl -X PUT https://api.daakey.com/api/v1/dashboard/damages/1 \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}" \
-d '{
"severity": "moderate",
"estimated_cost": 250.00,
"notes": "Needs professional touch-up"
}'Response
Success (200)
json
{
"success": true,
"message": "Damage report updated",
"data": {
"id": 1,
"severity": "moderate",
"repair": {
"estimated_cost": 250.00,
"notes": "Needs professional touch-up"
},
"updated_at": "2024-01-15T12:00:00Z"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}