Delete Current User
Delete a user. This function is only available through a JWT token, and can only remove the current user.
delete
https://studio.edgeimpulse.com/v1
/api/user
Delete current user
Delete a user. This function is only available through a JWT token, and can only remove the current user.
Parameters
No parameters
Responses
200: OK
OK
cURL
Python
Node.js
curl --request DELETE \
--url https://studio.edgeimpulse.com/v1/api/user \
--header 'x-jwt-token: REPLACE_KEY_VALUE'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
headers = { 'x-jwt-token': "REPLACE_KEY_VALUE" }
conn.request("DELETE", "/v1/api/user", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'DELETE',
url: 'https://studio.edgeimpulse.com/v1/api/user',
headers: {'x-jwt-token': 'REPLACE_KEY_VALUE'}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Last modified 3mo ago