Update ticket

Change a ticket's status, priority, class or assignee.

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

write Confirm

Updates the fields you pass and leaves the rest. Status is set by name, so Accelo runs the progression for that status and may need more details for it; the raw standing field is not used. A locked ticket cannot be changed. Setting an assignee informs that person. 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 list_tickets.
status string string Status name as shown in Accelo.
priority string string Priority name as shown in Accelo.
class string string Ticket class name as shown in Accelo.
assignee_id integer integer Staff ID of the new assignee.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/accelo/tickets/1042 \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"priority":"High","class":"Bug"}'
Python
result = client.call("accelo", "update_ticket", {"ticket_id":1042,"priority":"High","class":"Bug"})
Node.js
const result = await cotlet.call('accelo', 'update_ticket', {"ticket_id":1042,"priority":"High","class":"Bug"});
CLI
cotlet call accelo update_ticket --data '{"ticket_id":1042,"priority":"High","class":"Bug"}'

Example response

JSON

{
  "ticket_id": 1042,
  "title": "Export fails with an error",
  "status": "Active",
  "priority": "High",
  "class": "Bug",
  "assignee": "Sam Okafor",
  "updated": true
}

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.