Requests - Automation Rules API

List automation rules of a request

List all automation rules of the request with a specific ID.

GET /requests/:id/automation_rules

Response

Status: 200 OK
[
  {
    "id": 21,
    "disabled": false,
    "name": "Cancel task for new telephone",
    "trigger": "on status update",
    "position": 2,
    "created_at": "2020-02-15T05:08:46-06:00",
    "updated_at": "2020-02-15T05:08:46-06:00",
    "change_template": {
      "id": 22,
      "subject": "Prepare services for new employee"
    },
    "task_template": {
      "id": 69,
      "subject": "Cancel tasks that do not need to be completed"
    }
  },
  {
    "id": 20,
    "disabled": false,
    "name": "Add email address to AD task",
    "trigger": "on status update",
    "position": 1,
    "created_at": "2020-02-15T05:08:46-06:00",
    "updated_at": "2020-02-15T05:08:46-06:00",
    "change_template": {
      "id": 22,
      "subject": "Prepare services for new employee"
    },
    "task_template": {
      "id": 69,
      "subject": "Cancel tasks that do not need to be completed"
    }
  }
]

The response contains these fields by default.