Accepting MFA
This section explains how to accept and enable MFA after the steps described in Enabling MFA are performed.
Request
POST https://<hostname>/api/v1/users/{id}/acceptMfa |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be posted as URL.
Parameter | Description |
id | The identification number of the user. Can be obtained as described in Getting Users. |
Request Body
Property | Type | Description |
code | string | One of the codes obtained as described in Enabling MFA. |
token | string | The token obtained as described in Enabling MFA. |
Request Example
Request: POST https://<hostname>/api/v1/users/{id}/acceptMfa
Request Header: Authorization: Bearer <Access-Token>
Request Header: { "code": "24259296", "token": "MEJDODYyQTQxMjZEQUMyMEJGMzMzRkY4OTQzRjY1REYwRjI0MTg4REU2RjhGMEUyQTg2NjE0MUIxNzg2NjNFNg==" } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
None.