Using Auto registration API
- Updated: 2024/06/27
Using Auto registration API
Automatically register and connect your device to a Control Room by using the Auto registration API.
This API uses the generic Control Room registration token from the
autoregistration.properties
file to register the device in the
specified Control Room URL. You cannot autoregister the device if the Control Room URL is not available in the
autoregistration.properties
file. The
autoregistration.properties
file must be available on your local
system, and you must not delete the file after the registration is complete.
autoregistration.properties
file. For more information, see
Bulk installing Bot Agent. You can also view a sample
autoregistration.properties
file in the bulk install
topic.Request
POST http://127.0.0.1:22113/v1/registration/auto
{
"url": "https://{controlroom url}",
"userName": "dpcreator"
}
Request parameters
Parameter | Type | Required | Description |
---|---|---|---|
url | String | Yes |
Specify the Control Room URL to autoregister the device. |
userName | String | No |
Specify the Control Room user to associate the device as the default device. |
Response
{
"result": "REGISTERED",
"deviceId": "11",
"crUrl": "control_room_url",
"userName": "dpcreator"
"installationType": "SYSTEM_WIDE",
"crSwitchAllowed": "false",
}
Response parameters
Parameter | Type | Description |
---|---|---|
result | String | Status of the device registration. |
deviceId | Number | Unique ID of the device the Bot Agent is installed on. |
crUrl | String |
The Control Room URL where the device is autoregistered. |
userName | String |
The username for which the device is associated as default device. |
installationType | String | The type of installation that is performed. |
crSwitchAllowed | String | Indicates whether the device can be registered on a different Control Room. |