Management REST API

In the following reference, a https://mdash.net/api/v2 prefix must be added to all mentioned URLs.

Type URL Params Description
GET /devices - Return a list of all created devices
POST /devices - Create a new device and return it
POST /devices/:id {"shadow": {...}} Modify device shadow, return modified device
DELETE /devices/:id - Delete device
POST /devices/:id/rpc/:func {...} Call device's RPC function
GET /devices/:id/rpc/:func - Call device's RPC function with no params
POST /devices/:id/ota firmware-binary Update firmware: curl -F file=@fw.bin URL
GET /keys - Return a list of all API keys
POST /keys - Create and return a new API key
DELETE /keys/:id - Delete an API key
POST /m .zip Upload WebApp PWA .zip file