This endpoint requires authentication. The support request will be automatically associated with the authenticated user.
Endpoint
Authentication
This endpoint requires a valid JWT token. Include the token in the Authorization header: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
422 Unprocessable Entity
Returned when validation fails. The response includes an
errors object with field-specific error messagesBehavior
- The
user_idis automatically set to the authenticated user’s ID - When a support request is created, all administrators receive a notification
- The endpoint returns HTTP status code 201 (Created) on success
- All timestamps are automatically managed by Laravel
Notes
- The
datefield accepts various date formats but will be stored and returned in ISO 8601 format - Both
locationanddetailmust be at least 10 characters to ensure meaningful information - Administrators are notified via Laravel’s notification system when a new support request is created