Create an Upgrade Firmware Task on a Device

POST /api/v2/devices/997414120/tasks
{
  "data": {
    "type": "tasks",
    "attributes": {
      "type": "SOFTWARE_UPGRADE",
      "firmware_id": "60db20dc31eddd3a911f90b5"
    }
  }
}

RESPONSE:

{
  "data": {
    "id": "60db20dc31eddd3a911f90b6",
    "type": "tasks",
    "attributes": {
      "function": "SOFTWARE_UPGRADE",
      "created_at": "2021-06-29T13:32:12.490Z",
      "state": "queued",
      "firmware_id": "60db20dc31eddd3a911f90b5",
      "version": "4.8"
    }
  }
}