Description

To remove a Multi-Factor Authentication (MFA) channel from your DruID account, use this method.

It’s imperative to have a user logged in with an access token. This operation cannot be performed without an authenticated user. Before proceeding, familiarize yourself with OAuth2 APIs to understand the OAuth2 protocol and the significance of each token.

Please note that the system only permits the deletion of voluntary MFA channels.

Endpoint URL:

 POST https://{your-endpoint-domain.com}/activityid/v1/mfa/delete

Request parameters

ParameterDescriptionTypeRequired
Authorization“Bearer access_token” Literal text Bearer followed by access_token that is the user access token obtained from /oauth2/token endpointstringyes
Content-TypeThe type of content that will be used for requests to be JSONstringyes
AcceptThe type of content that will be used for responses to be JSONstringyes
FromName of the entry pointstringyes
Accept-LanguageLanguage for this requestLocaleno

Query string parameters

Request Example

ParameterDescriptionTypeRequiredValue
actor.idobject_id of the logged userstringyesuser id
actor.objectTypeType of the object which represents the actor.stringyes‘person’
verbVerb used for deleting the MFA channelstringyes‘delete’
object.objectTypeObjectType represents the userstringyes‘user’
source.idType of device doing the activitystringyes‘unknown’ | ‘pc’ | ‘mobile’ | ‘tablet’ | ‘game_console’ | ‘itv’
source.objectTypeType of sourcestringyes‘device’
context.mfa_channelName of the MFA channelstringyes‘sms’

Response examples

Response: MFA Deleted Channel

ParameterDescriptionType
resultCommon http resultstruct
result.statusHttp codeinteger
result.messageA description that describes the result of the operationstring

Response codes

CodeTypeDescription
400ErrorBad Request: The request could not be understood by the server due to malformed syntax
401ErrorUnauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc)
417ErrorMFA Error: There is a problem with MFA, you will receive a detailed error description
500ErrorInternal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request
504ErrorGateway TimeoutService can not contact with oauth server to do some internal operations
200SuccessMFA code deleted successfully