List all devices.
| Context | Name | Type | Description | Required |
|---|
| HTTP code | Reason | Response model |
|---|
Create a device.
| Context | Name | Type | Description | Required |
|---|---|---|---|---|
| form | mac | string | Hardware (MAC) address | yes |
| form | nickname | string | Nickname (display name) | yes |
| form | command | string | UNIX shell command to run once | no |
| form | network_id | integer | Wifi network ID to associate with | no |
| form | network[ssid] | string | Network SSID | no |
| HTTP code | Reason | Response model |
|---|
Get device access token.
| Context | Name | Type | Description | Required |
|---|---|---|---|---|
| path | id | string | Device id | yes |
| HTTP code | Reason | Response model |
|---|
Get device details.
| Context | Name | Type | Description | Required |
|---|---|---|---|---|
| path | id | string | Device id | yes |
| HTTP code | Reason | Response model |
|---|
Update device details.
| Context | Name | Type | Description | Required |
|---|---|---|---|---|
| path | id | string | no | |
| form | mac | string | Hardware (MAC) address | yes |
| form | nickname | string | Nickname (display name) | yes |
| form | network_id | integer | Wifi network ID to associate with | yes |
| form | command | string | UNIX shell command to run once | no |
| HTTP code | Reason | Response model |
|---|
Delete a device.
| Context | Name | Type | Description | Required |
|---|---|---|---|---|
| path | id | string | Note id | yes |
| HTTP code | Reason | Response model |
|---|