Links

Change Password Current User

Change the password for the current user account. This function is only available through a JWT token.
post
https://studio.edgeimpulse.com/v1
/api/user/change-password
Change password current user

Change the password for the current user account. This function is only available through a JWT token.

Parameters
No parameters
Body
Example
Schema
{
"currentPassword": "string",
"newPassword": "string"
}
Responses
200: OK
OK
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/user/change-password \
--header 'content-type: application/json' \
--header 'x-jwt-token: REPLACE_KEY_VALUE' \
--data '{"currentPassword":"string","newPassword":"string"}'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
payload = "{\"currentPassword\":\"string\",\"newPassword\":\"string\"}"
headers = {
'content-type': "application/json",
'x-jwt-token': "REPLACE_KEY_VALUE"
}
conn.request("POST", "/v1/api/user/change-password", 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/change-password',
headers: {'content-type': 'application/json', 'x-jwt-token': 'REPLACE_KEY_VALUE'},
body: {currentPassword: 'string', newPassword: 'string'},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});