This endpoint requires authentication. Users can only update their own support requests.
Endpoint
Authentication
This endpoint requires a valid JWT token. Include the token in the Authorization header:Path Parameters
The unique identifier of the support request to update
Request Body
The date and time when support is needed. Must be a valid date format (e.g.,
YYYY-MM-DD or YYYY-MM-DD HH:MM:SS)The location where support is needed. Must be at least 10 characters long
A detailed description of the issue or support needed. Must be at least 10 characters long
Validation Rules
- date: Required, must be a valid date
- location: Required, must be a string, minimum 10 characters
- detail: Required, must be a string, minimum 10 characters
Response
Indicates whether the request was successful
A human-readable message describing the result
The response data object
Response Examples
Code Examples
Error Responses
401 Unauthorized
Returned when the request is made without a valid JWT token or the token has expired
404 Not Found
Returned when:
- The support request with the specified ID does not exist
- The support request belongs to a different user (implicit ownership check)
422 Unprocessable Entity
Returned when validation fails. The response includes an
errors object with field-specific error messagesBehavior
- The
user_idcannot be changed and remains associated with the original creator - The
updated_attimestamp is automatically updated when the record is modified - All fields (
date,location,detail) are required for the update
Notes
- This is a full update endpoint (PUT), so all required fields must be provided
- Users can only update support requests they created
- The endpoint checks if the support request exists before attempting to update it
- Laravel’s route model binding is used for automatic model retrieval