Update ticket

Change a ticket's state, priority, group, owner or title.

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

write Confirm

Sets only the fields you pass and returns the ticket as it is afterwards. Names must match list_ticket_options. A pending state needs pending_until, because Zammad asks for a date and time; Pending Close closes the ticket then. The first update of a new ticket moves it to open. Zammad's own triggers and notifications run as for any update by an agent, so a customer can get a mail from them. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: update_ticket
NameTypeDescription
ticket_id integer required integer Ticket ID from search_tickets, list_overview_tickets or the ticket address (#ticket/zoom/{ticket_id}).
state string string State name from list_ticket_options, e.g. open, pending reminder, pending close or closed.
priority string string Priority name from list_ticket_options, e.g. '3 high'.
group string string Group name from list_ticket_options.
owner string string Agent name from list_ticket_options.
pending_until datetime datetime ISO date and time. Required with state pending reminder or pending close.
title string string New ticket title. It is also the subject of email articles.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/zammad/tickets/4812 \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"group":"Billing","priority":"3 high","owner":"Nora Weiss"}'
Python
result = client.call("zammad", "update_ticket", {"ticket_id":4812,"group":"Billing","priority":"3 high","owner":"Nora Weiss"})
Node.js
const result = await cotlet.call('zammad', 'update_ticket', {"ticket_id":4812,"group":"Billing","priority":"3 high","owner":"Nora Weiss"});
CLI
cotlet call zammad update_ticket --data '{"ticket_id":4812,"group":"Billing","priority":"3 high","owner":"Nora Weiss"}'

Example response

JSON

{
  "ticket_id": 4812,
  "number": "31004812",
  "title": "Refund for a double charge",
  "state": "open",
  "priority": "3 high",
  "group": "Billing",
  "owner": "Nora Weiss",
  "updated_at": "2026-10-22T08:03:00.000Z"
}

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.