Create an Install App Task on a Device, Specifying App Version and Configuration

This example creates an install app task on a device, specifys the app version, and the app configurations to apply after the install. App configurations are specified by ID in the config_ids array.

POST /api/v2/devices/997270969/tasks
{
  "data": {
    "type": "tasks",
    "attributes": {
      "type": "INSTALL_APP",
      "app_id": "60d0e0d631eddd4f5a2f5d85",
      "version": "4.3.3",
      "config_ids": [
        "60d0e0d631eddd4f5a2f5d8c"
      ]
    }
  }
}

RESPONSE

{
  "data": {
    "id": "60d0e0d631eddd4f5a2f5d90",
    "type": "tasks",
    "attributes": {
      "function": "INSTALL_APP",
      "created_at": "2021-06-21T18:56:22.638Z",
      "state": "queued",
      "app_id": "60d0e0d631eddd4f5a2f5d85",
      "config_ids": "60d0e0d631eddd4f5a2f5d8c",
      "app": {
        "name": "app_56448630",
        "version": "4.3.3",
        "config_ids": "60d0e0d631eddd4f5a2f5d8c",
        "id": "60d0e0d631eddd4f5a2f5d85"
      },
      "version": "4.3.3"
    }
  }
}