Close a support ticket
const url = 'https://api.fleet.co/platform/v1/tickets/42';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status":"SOLVED"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.fleet.co/platform/v1/tickets/42 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status": "SOLVED" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Ticket id
Example
42Request Body
Section titled “Request Body”object
Closes the ticket with Fleet support
Responses
Section titled “Responses”Solved ticket
object
object
Reference Fleet support quotes in its replies
What the request is about, as in Cockpit’s support form
Support ticket status; WAITING_CLIENT means Fleet waits for the company’s answer
The request as the requester wrote it
ISO 8601
ISO 8601
Replies after the opening request, oldest first
object
HTML when content_type is html_body
User of the company who wrote it, when known
True when Fleet support wrote it
ISO 8601
Example
{ "data": { "reference": "48213", "category": "ORDER__UPDATE", "status": "OPENED", "messages": [ { "content_type": "body" } ] }}Validation error
object
Every validation failure, comma-separated
Example
{ "message": "Required, must be an ISO 3166-1 alpha-2 country code", "type": "validation_error", "error": "validation_error"}Missing, invalid, or revoked API key
Example
UnauthorizedThe API key has READ scope; this operation needs WRITE
object
Example
{ "error": "INSUFFICIENT_SCOPE"}Ticket not found
object
Example
{ "error": "TICKET_NOT_FOUND"}Rate limit exceeded. The RateLimit-* headers give the limit and the reset time.
Example
Too many requests, please try again later.Unexpected server error
object
Example
{ "error": "INTERNAL_ERROR"}Fleet support could not be updated; the ticket stays open
object
Example
{ "error": "TICKET_SYNC_FAILED"}Rate limiting is temporarily unavailable; retry with backoff
object
Example generated
{ "message": "example"}
