Thingsboard Device Provisioning : How to create new devices in a specified device group via API?

Viewed 288

As I am going through the documentation regarding "Device Provision" & "Bulk Provision" in Thingsboard, I came to know that the devices can be provisioned via following API,

curl -v -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{"deviceName":"*<name>*","provisionDeviceKey":"*<key>*","provisionDeviceSecret":"*<secret_key>*"}" "https://thingsboard.cloud/api/v1/provision"

The above command will create a new device under default device group ("All" device group). How can we make this API to create a new device under specified Device Group with the help of "Device Group" entity id?

Please provide suggestions.

Thank you.

1 Answers
Related