cURL
curl --request POST \ --url https://studio.edgeimpulse.com/v1/api/{projectId}/devices/create \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "deviceId": "ac:87:a3:0a:2d:1b", "deviceType": "DISCO_L475VG_IOT01A", "ifNotExists": true }'
{ "success": true, "error": "<string>" }
Create a new device. If you set ifNotExists to false and the device already exists, the deviceType will be overwritten.
ifNotExists
false
deviceType
Project ID
OK
The response is of type object.
object