Cancel a Task Created for a Device

PUT/PATCH /api/v2/devices/993608179/tasks/60d3463531eddd136e3f154c/cancel

{
  "data": {
    "id": "60d3463531eddd136e3f154c",
    "type": "tasks",
    "attributes": {
      "function": "INSTALL_APP",
      "created_at": "2021-06-23T14:33:25.145Z",
      "state": "cancelled",
      "app_id": "60d3463431eddd136e3f1542",
      "app": {
        "name": "app_90535018",
        "version": "7.1.3",
        "config_ids": "",
        "id": "60d3463431eddd136e3f1542"
      },
      "version": "7.1.3"
    }
  }
}