Update ticket

Set status, priority, assignee, tags or snooze on a ticket.

PATCH https://cotlet.dev/api/v1/gorgias/tickets/{ticket_id}

write

Changes only the fields you pass. Tags in add_tags are added and the existing ones stay. Nothing here is sent to the customer, and every change is undone by one more call, so it asks no confirmation by default. Needs a role that can modify tickets (Lite or above).

Parameters

Parameters: update_ticket
NameTypeDescription
ticket_id integer required integer Ticket ID from search_tickets.
status enum enum open or closed.
priority enum enum low, normal, high or critical.
assignee_team string string Team name from list_assignees.
assignee_user string string User name from list_assignees.
add_tags string[] string[] Tags to add.
remove_tags string[] string[] Tags to remove.
snooze_until datetime datetime Snooze the ticket until this time; Gorgias reopens it then, or when the customer replies.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/gorgias/tickets/10482 \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"priority":"high","assignee_team":"Returns","add_tags":["refund"]}'
Python
result = client.call("gorgias", "update_ticket", {"ticket_id":10482,"priority":"high","assignee_team":"Returns","add_tags":["refund"]})
Node.js
const result = await cotlet.call('gorgias', 'update_ticket', {"ticket_id":10482,"priority":"high","assignee_team":"Returns","add_tags":["refund"]});
CLI
cotlet call gorgias update_ticket --data '{"ticket_id":10482,"priority":"high","assignee_team":"Returns","add_tags":["refund"]}'

Example response

JSON

{
  "ticket_id": 10482,
  "status": "open",
  "priority": "high",
  "assignee_team": "Returns",
  "tags": [
    "shipping",
    "refund"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.