Mark ticket as resolved
POST/truckers/tickets/:id/resolve
Mark a ticket as resolved by changing its status and recording the resolution date.
Can only be executed by the original creator of the ticket.
Effects:
- Changes the ticket status to resolved
- Records the current date/time as the resolution date
- The ticket will no longer appear in open ticket searches
Usage example:
- Confirm that a reported issue has been resolved
- Close tickets after receiving confirmation from the support team
Notes:
- Irreversible operation (a resolved ticket cannot be reopened)
- To cancel a ticket, use DELETE /{id}
Request
Responses
- 200
- 401
- 404
Returns the updated ticket with the new status 'resolved'. Includes the resolution date in the 'resolved' field.
Unauthorized. This may be due to:
- Invalid or expired JWT token
- The user is not the ticket creator
Ticket not found. This may be due to:
- The ID does not exist
- The ticket does not belong to the authenticated user