Create Device
This operation is used to create a device.
Contents
Request
- POST .../api/v2/devices
Important
Requires the administrator roleThe body includes 1 mandatory parameter:
- phoneNumber must be present.
The property telephonyNetwork can optionally be provided with a value of Public or Private. See the device attributes table for additional details.
The model and vendor properties have been deprecated in Version 2 of the API and will be ignored if present in creation requests.
POST .../api/v2/devices
{
"phoneNumber": "3001"
}
The Response contains the uri and id of the device.
Example
{
"statusCode": 0,
"id": "0bf06531-9cb7-4d6e-bff3-d910f83a493d",
"uri": "http://172.21.16.123:8080/cloud-web/api/v2/devices/0bf06531-9cb7-4d6e-bff3-d910f83a493d"
}
If the phone number is already in use, 403 FORBIDDEN will be returned.
This page was last edited on October 31, 2023, at 13:29.
Comments or questions about this documentation? Contact us for support!
