Revoke trusted device
DELETE
/api/mfa/trusted-devices/{deviceId}
const url = 'http://localhost:3001/api/mfa/trusted-devices/example';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
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:3001/api/mfa/trusted-devices/example \ --header 'Authorization: <Authorization>'Revoke trust for a specific device by device ID
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”deviceId
required
string
Device ID
Responses
Section titled “Responses”OK
Media typeapplication/json
object
message
string
success
boolean
Examplegenerated
{ "message": "example", "success": true}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}