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
| Name | Type | Description |
|---|---|---|
| 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 -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"}' result = client.call("accelo", "update_ticket", {"ticket_id":1042,"priority":"High","class":"Bug"}) const result = await cotlet.call('accelo', 'update_ticket', {"ticket_id":1042,"priority":"High","class":"Bug"}); cotlet call accelo update_ticket --data '{"ticket_id":1042,"priority":"High","class":"Bug"}' Example response
{
"ticket_id": 1042,
"title": "Export fails with an error",
"status": "Active",
"priority": "High",
"class": "Bug",
"assignee": "Sam Okafor",
"updated": true
}