Reset an end user's TOTP credentials.
POST
/api/admin/users/{id}/totp/reset
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/users/example/totp/reset \ --header 'Authorization: Bearer <token>'Deletes all TOTP credentials and backup codes for the target end user and records an admin audit event.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Header Parameters
Section titled “Header Parameters ” X-Tenant-Id
string
Tenant selector for multi-tenant admin requests.
Responses
Section titled “ Responses ”Admin end-user TOTP reset response.
Media type application/json
object
ok
required
boolean
deleted
required
integer
key
additional properties
Example generated
{ "ok": true, "deleted": 1}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}