Step 9: Create a user
POST {{apiPath}}/environments/{{envID}}/users
The POST /environments/{{envID}}/users
operation creates the new user resource in the specified environment. The user is associated with a population created in Step 8.
The request body for the POST
to create the new user must provide values for these required properties:
email
The unique email address for the new user.
-
username
A name for the new user that must be unique within the specified environment.
-
population.id
The population to associate with the new user resource.
Request Body
{"email"=>"{{email}}", "name"=>{"given"=>"Test", "family"=>"MFAUser"}, "population"=>{"id"=>"{{MFAPopID}}"}, "username"=>"MFA_user_{{$timestamp}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |