Module Update (v1)#

REST Requests:#

Websockets:#

Websocket endpoint: GET /api/v1/update/notifications

Websocket Events:

Module Update REST API (v1)#

PUT /api/v1/update/upload#

Upload update file / Trigger update / Reboot

Query Parameters:
  • reboot – enable/disable automatic reboot

Status Codes:

Example:

Upload update file / Trigger update (with reboot)

PUT /api/v1/update/upload
<upload file content in request body>

Upload update file / Trigger update (without reboot)

PUT /api/v1/update/upload?reboot=no
<upload file content in request body>
GET /api/v1/update/version#

Get current device version

Status Codes:
  • 200 OK – current version – JSON Schema: string

Example:

Get current device version

GET /api/v1/update/version
"1.3.2"

Module Update Websocket events (v1)#

Endpoint:

GET /api/v1/update/notifications#
Request Headers:

Events:

Module Update JSON Schema (v1)#

upload_progress#

type

object

properties

  • name

string

  • data

upload_progress_event_data

step_changed#

type

object

properties

  • name

string

  • data

step_changed_event_data

reboot#

type

string

oneOf

the drone will reboot automatically at the end of the process

const

yes

the drone will not reboot automatically at the end of the process

const

no

upload_progress_event_data#

type

object

properties

  • progress

integer

step_changed_event_data#

type

object

properties

  • step

step

step#

type

string

oneOf

the update file is being parsed / verified

const

check

the update file is being extracted and written in memory

const

trigger

the device is about to reboot

const

reboot