Updates an existing report by its ID.
| Permission | Description |
|---|---|
reports.update | Update your own report |
reports.update_any | Update any report |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| report-id | int | Yes | ID of the report to update | 123 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| description | string | No | Content of the report (max 255 chars) | "Updated details" |
| signed_off | bool | No | Whether the report is signed off (admin only) | true |
All parameters are optional; only include fields you wish to update.
{
"description": "Updated details about the issue.",
"signed_off": true
}
Returns the updated report resource.
{
"report": {
"id": 123,
"reportable_type": "App\\Models\\Gym",
"reportable_id": 456,
"user_id": 789,
"description": "Updated details about the issue.",
"signed_off": true,
"created_at": "2020-01-01 00:00:00"
}
}
For a full schema, see Report Resource.
| Status | Description | Reference |
|---|---|---|
| 422 | Validation error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |