Loading...
Set the current name for a device.
Project ID
Device ID
New name for this device
"Jan's development board"
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/devices/{deviceId}/rename', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "name": "Jan's development board" }), }); const data = await response.json();
{ "success": false, "error": "text" }