Configuration API Service — Creating a Device
Configuration API Service — Creating a Device
To create a device via the Configuration API service, only a minimum set of properties are required; all others are set to the default value. The specific properties are dependent on the protocol or driver selected.
Using a REST-based API tool such as Postman, Insomnia, or Curl; make a POST request to the device endpoint under a channel.
The example below will create a device named Device1 under Channel1 that uses the Simulator driver on a server running on the local host.
Endpoint (POST):
https://<hostname_or_ip>:<port>/config/v1/project/channels/Channel1/devices
Body:
{ “common.ALLTYPES_NAME”: “Device1”, “servermain.MULTIPLE_TYPES_DEVICE_DRIVER”: “Simulator”}

Refer to the driver specific help documentation to find out what properties are required to create a device for that driver.