dambel

دمبل

shevron
ورود | ثبت نام

API Docs / reports / update



PUT /api/v1/reports/{report-id}

Updates an existing report by its ID.


Permissions

PermissionDescription
reports.updateUpdate your own report
reports.update_anyUpdate any report

URL Parameters

NameTypeRequiredDescriptionExample
report-idintYesID of the report to update123

Request Body Parameters

NameTypeRequiredDescriptionExample
descriptionstringNoContent of the report (max 255 chars)"Updated details"
signed_offboolNoWhether the report is signed off (admin only)true

All parameters are optional; only include fields you wish to update.


Request Example

{
  "description": "Updated details about the issue.",
  "signed_off": true
}

Response

200 OK

Returns the updated report resource.

Example

{
  "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.


Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube