Step 13: Set user device (Email)

POST {{apiPath}}/environments/{{envID}}/users/{{MFAUserID}}/devices

The POST /environments/{{envID}}/users/{{userID}}/devices operation creates an Email MFA device and associates this device with the specified user. The user must have an associated email device to complete an email MFA authentication action.

Request Body

{"type"=>"EMAIL", "email"=>"{{email}}", "policy"=>{"id"=>"{{deviceAuthPolicyID}}"}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring