Step 8: Create an admin 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 7.

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"=>"User", "family"=>"Administrator"}, "population"=>{"id"=>"{{adminUserPopID}}"}, "username"=>"usecaseAdmin_user_{{$timestamp}}"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring