Activate User
Activate a user account (requires an activation code). This function is only available through a JWT token.
post
https://studio.edgeimpulse.com/v1
/api/users/{userId}/activate
Activate user
Activate a user account (requires an activation code). This function is only available through a JWT token.
Parameters
Path
userId*
integer
User ID
Body
Example
Schema
{
"code": "string"
}
Responses
200: OK
OK
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/users/{userId}/activate \
--header 'content-type: application/json' \
--header 'x-jwt-token: REPLACE_KEY_VALUE' \
--data '{"code":"string"}'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
payload = "{\"code\":\"string\"}"
headers = {
'content-type': "application/json",
'x-jwt-token': "REPLACE_KEY_VALUE"
}
conn.request("POST", "/v1/api/users/{userId}/activate", 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/users/{userId}/activate',
headers: {'content-type': 'application/json', 'x-jwt-token': 'REPLACE_KEY_VALUE'},
body: {code: 'string'},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Last modified 3mo ago