Delete one current user's TOTP credential.
curl --request DELETE \ --url https://auth.example.com/api/account/totp/example \ --header 'Content-Type: application/json' \ --cookie authrim_session=<authrim_session> \ --data '{ "code": "example", "backup_code": "example" }'Deletes a TOTP credential. A current TOTP code or backup code is required for active credentials unless the session was recently reauthenticated with TOTP.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body
Section titled “Request Body ”object
Example generated
{ "code": "example", "backup_code": "example"}Responses
Section titled “ Responses ”Account Page TOTP credential delete response.
object
object
Example generated
{ "ok": true, "credential": { "id": "example", "deleted": true }}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}