Step 11: 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 10.

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"=>"do-not-send@example.com", "name"=>{"given"=>"Test", "family"=>"ProgressiveProfileUser"}, "population"=>{"id"=>"{{progressiveProfilePopID}}"}, "username"=>"progressive_profile_user_{{$timestamp}}"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring