Task Templates - Approvers API

List all approvers of a task template

List all people who were linked as an approver to a task template with a specific ID.

GET /task_templates/:id/approvers

Response

Status: 200 OK
[
  {
    "id": 53,
    "sourceID": 211234,
    "name": "Brian Myers",
    "organization": {
      "id": 32,
      "name": "Widget Data Center, External IT"
    },
    "site": {
      "id": 13,
      "name": "Widget Data Center"
    },
    "manager": null,
    "created_at": "2014-09-02T09:50:02-05:00",
    "updated_at": "2014-09-05T00:55:56-05:00"
  },
  {
    "id": 58,
    "sourceID": 21197,
    "name": "Frank Watson",
    "organization": {
      "id": 32,
      "name": "Widget Data Center, External IT"
    },
    "site": {
      "id": 13,
      "name": "Widget Data Center"
    },
    "manager": {
      "id": 76,
      "name": "Rodney Wilson"
    },
    "created_at": "2014-09-02T09:50:03-05:00",
    "updated_at": "2014-09-02T09:50:50-05:00"
  },
  "..."
]

The response contains these fields by default.

Add an approver to a task template

Add a link between a task template with a specific ID and an approver with a specific ID.

POST /task_templates/:id/approvers/:person_id

Response

Status: 200 OK
{

}

Remove an approver from a task template

Remove the link between a task template with a specific ID and an approver with a specific ID.

DELETE /task_templates/:id/approvers/:person_id

Response

Status: 204 No Content

Remove all approvers from a task template

Remove all links between a task template with a specific ID and its approvers.

DELETE /task_templates/:id/approvers

Response

Status: 204 No Content