Automations
Update Many Automations
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}
]
}
put/api/v2/automations/update_many
Response
Success response
Example response
{
"automations": [
{
"actions": [
{
"field": "priority",
"value": "high"
}
],
"active": true,
"conditions": {
"all": [
{
"field": "status",
"operator": "is",
"value": "open"
},
{
"field": "priority",
"operator": "less_than",
"value": "high"
}
],
"any": []
},
"default": false,
"id": 9873843,
"position": 8,
"raw_title": "Roger Wilco",
"title": "Roger Wilco"
}
]
}