Links

Rename

Set the current name for a device.
post
https://studio.edgeimpulse.com/v1
/api/{projectId}/devices/{deviceId}/rename
Rename

Set the current name for a device.

Parameters
Path
projectId*
integer
Project ID
deviceId*
string
Device ID
Body
Example
Schema
{
"name": "Jan's development board"
}
Responses
200: OK
OK
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/devices/{deviceId}/rename \
--header 'content-type: application/json' \
--header 'x-jwt-token: REPLACE_KEY_VALUE' \
--data '{"name":"Jan'\''s development board"}'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
payload = "{\"name\":\"Jan's development board\"}"
headers = {
'content-type': "application/json",
'x-jwt-token': "REPLACE_KEY_VALUE"
}
conn.request("POST", "/v1/api/{projectId}/devices/{deviceId}/rename", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'POST',
url: 'https://studio.edgeimpulse.com/v1/api/{projectId}/devices/{deviceId}/rename',
headers: {'content-type': 'application/json', 'x-jwt-token': 'REPLACE_KEY_VALUE'},
body: {name: 'Jan\'s development board'},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});