Step 7: 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 the population created in Step 6.

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. This name 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"=>"SimpleLoginUser"}, "population"=>{"id"=>"{{SimpleLoginPopID}}"}, "username"=>"simplelogin_user_{{$timestamp}}"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring