The method and parameters
|
POST /api/v1/billing/devices/activate |
You can pass either mac or serial_number.
JSON
{
"login": "user-login",
"name": "name",
"type": "mediaagent",
"mac": "fake_mac_5",
"serial_number": "sn",
"skip_reserve_check": false
}
string login required – the login of the user to whom you want to add a device.
string name required – the name of the device.
string type required – a device type.
string mac – the MAC address of the device.
string serial_number – the device serial number.
bool skip_reserve_check – this parameter is required to activate a device that is reserved
|
201 |
|
Successful response JSON
|
|
422 |
|
Returns a JSON object with an error. For details, see General information > Validation. JSON
|