Create a new device
This action will create a new device in the given unit.
Try this request in your browser
URL
https://connectapi.dial9.co.uk/api/v2/devices/create
Access
Must be authenticated as a user or API token.
If not authorised, a AccessDenied error will be returned.
Parameters
| Parameter | Type | Default |
|---|---|---|
|
unit_id The ID of the unit |
Integer | null |
|
mac_address Required The MAC address of the device |
String | null |
|
description Required The description of the device |
String | null |
|
device_type Required The device type |
String | null |
|
additional_config Any additional configuration for the device |
String | null |
|
auth_key The administration password for the device |
String | null |
|
extension_id Required The id of the extension for this device |
Integer | null |
Errors
| Error | Attributes |
|---|---|
|
UnitNotFound The given unit was not found |
|
|
InvalidExtension The extension provided was invalid |
|
|
ValidationError A validation error occurred |
|
Response Data
This action will return a device structure.
You'll receive all attributes for this structure (basic and extended attributes). You'll receive all expansions for this stucture.