Links

Activate User By Third Party Activation Code

Activate a user that was created by a third party. This function is only available through a JWT token.
post
https://studio.edgeimpulse.com/v1
/api/user/activate-by-third-party-activation-code
Activate user by third party activation code

Activate a user that was created by a third party. This function is only available through a JWT token.

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