v1

latestOpenAPI 3.0.32026-07-26870417.2 KB
tickets

Update Ticket

This endpoint updates properties of a ticket

patch/tickets/{ticket_id}

Request body

assigneestring
  • Update the assignee of the ticket. Must be an email of a user in the organization
closed_bystring
  • Email of the user who is closing the ticket. Must be the email of a user in the organization
closed_messagestring
  • A closing message saved alongside the ticket for additional context when it is closed
{"stackTrail":"paths:/tickets/{ticket_id}:patch:requestBody:content:application/json:schema:properties:due_date","oasType":"schema","type":"unknown","description":"- Updates the due date of the ticket.\n- Must be a string that can be parsed to a date","example":null,"nullable":true}
labelsstring
  • A comma-separated list of labels to be assigned to the tickets. All labels are case-insensitive.
  • If any label currently does not exist, it will be created
prioritystring
  • Updates the priority of the ticket.
  • Only accepts the following values - 1,2,3,4
    • 1 = Low
    • 2 = Medium
    • 3 = High
    • 4 = Urgent
statusstring
  • Updates the status of the ticket.
  • Only accepts the following values - open, inprogress, closed, archived
subjectstring
  • Updates the subject of the ticket

Example request

{
  "closed_by": "bharat@hashlabs.dev",
  "closed_message": "Issue resolved after customer confirmation",
  "custom_properties": {
    "Custom Property 1": "hello"
  },
  "priority": "2",
  "subject": "New subject 1"
}

Response

200 OK

object required

The response is a ticket object. Refer to the ticket object here