Update Automation

PUT {{baseUrl}}/api/v2/automations/:automation_id

Updates an automation.

Updated automations must be unique and have at least one condition that is true only once or an action that nullifies at least one of the conditions. Active automations can have overlapping conditions but can't be identical.

The request must include the following conditions in the all array: - At least one time-based condition - At least one condition that checks one of the following fields: 'status', 'type', 'groupid', 'assigneeid', or 'requester_id'

Note: Updating a condition or action updates both the conditions and actions arrays, clearing all existing values of both arrays. Include all your conditions and actions when updating any condition or action. Note: You might be restricted from updating some default automations.

Allowed For

  • Agents

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"automation":{"actions":[{"field":"status","value":"open"},{"field":"assignee_id","value":"296220096"}],"active":true,"conditions":{"all":[{"field":"status","operator":"less_than","value":"solved"},{"field":"assignee_id","operator":"is","value":"296220096"}],"any":[{"field":"current_tags","operator":"includes","value":"hello"}]},"id":25,"position":8,"raw_title":"Close and Save","title":"Close and Save"}}