Update Current User
Update user properties such as name. This function is only available through a JWT token.
post
https://studio.edgeimpulse.com/v1
/api/user
Update current user
Update user properties such as name. This function is only available through a JWT token.
Parameters
No parameters
Body
Example
Schema
{
"name": "Jan Jongboom",
"showImagine2022": true,
"experiments": [
"string"
]
}
Responses
200: OK
OK
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/user \
--header 'content-type: application/json' \
--header 'x-jwt-token: REPLACE_KEY_VALUE' \
--data '{"name":"Jan Jongboom","showImagine2022":true,"experiments":["string"]}'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
payload = "{\"name\":\"Jan Jongboom\",\"showImagine2022\":true,\"experiments\":[\"string\"]}"
headers = {
'content-type': "application/json",
'x-jwt-token': "REPLACE_KEY_VALUE"
}
conn.request("POST", "/v1/api/user", 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/user',
headers: {'content-type': 'application/json', 'x-jwt-token': 'REPLACE_KEY_VALUE'},
body: {name: 'Jan Jongboom', showImagine2022: true, experiments: ['string']},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Last modified 3mo ago