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
| Name | Type | Description |
|---|---|---|
| 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 -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"]}' result = client.call("gorgias", "update_ticket", {"ticket_id":10482,"priority":"high","assignee_team":"Returns","add_tags":["refund"]}) const result = await cotlet.call('gorgias', 'update_ticket', {"ticket_id":10482,"priority":"high","assignee_team":"Returns","add_tags":["refund"]}); cotlet call gorgias update_ticket --data '{"ticket_id":10482,"priority":"high","assignee_team":"Returns","add_tags":["refund"]}' Example response
{
"ticket_id": 10482,
"status": "open",
"priority": "high",
"assignee_team": "Returns",
"tags": [
"shipping",
"refund"
]
}