Deactivate a user
DELETE
/v1/users/{id}
const url = 'http://localhost:8080/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8080/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Marks the user inactive and revokes every session; user rows are never deleted because evidence and audit reference them. Administrators only. 404 for an unknown user, 409 when deactivating your own account.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”No Content