Request URL
Device can be created using two methods:
PUT | https://api.dotcom-monitor.com/config_api_v1/devices |
POST | https://api.dotcom-monitor.com/config_api_v1/devices?verb=PUT |
Header Parameters
Content-Type: application/json
Required Body Parameters
To specify a JSON object parameters for a new device, we recommend you get an existed device info first and use the response as a sample for a new device object. Find the description of common fields in the API: Device Methods Overview.
To disable alerts for a device, use API: Disable Alerts for Device or API: Disable Alerts for Several Devices.
The following fields are required in the request body:
Field |
Type |
Required/Optional |
Description | |||||||||||||
Locations |
array of int32 |
required *Except MetricsView devices |
An array containing location IDs assigned to a specified device. At least one location must be specified in the requests.
Example:
|
|||||||||||||
Frequency |
int32 |
required |
This Field reflects monitoring frequency in seconds.
Example:
|
|||||||||||||
Platform_Id |
int32 |
required |
All devices are distributed by 5 platforms. Each platform has its own “Platform_Id”.
IMPORTANT: UserView is not supported by dotcom-monitor API v.1. Userview scripts can be created/recorded only using EveryStep Scripting Tool. Example:
|
|||||||||||||
Name |
string |
optional |
It is recommended to specify a unique name for the device.
Example:
|
When you set up a new device and do not assign any filter, the default filter is automatically assigned to the device.
Success Response
Field |
Type |
Description |
Result |
int32 |
The unique id for the device. |