Update Many Automations
PUT {{baseUrl}}/api/v2/automations/update_many
Note: You might be restricted from updating some default automations. If included in a bulk update, the unrestricted automations will be updated.
Allowed For
- Agents
Request Parameters
The PUT request expects an automations
object that lists the automations to update.
Each automation may have the following properties:
Name | Mandatory | Description |
---|---|---|
id | yes | The ID of the automation to update |
position | no | The new position of the automation |
active | no | The active status of the automation (true or false) |
Example Request
{
"automations": [
{"id": 25, "position": 3},
{"id": 23, "position": 5},
{"id": 27, "position": 9},
{"id": 22, "position": 7}
]
}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"automations":[{"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":15,"raw_title":"Close and Save","title":"Close and Save"},{"actions":[{"field":"status","value":"open"},{"field":"assignee_id","value":"296220096"}],"active":false,"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":26,"position":8,"raw_title":"{{dc.assign_priority_tag}}","title":"Assign priority tag"}],"count":2,"next_page":null,"previous_page":null}