Step 15: Create a destination user

POST {{apiPath}}/environments/{{destinationEnvID}}/users

Create a new user resource in the destination environment using a POST {{apiPath}}/environments/{{destinationEnvID}}/users request. In the request body, the email and username properties must be unique to the new user within the specified environment. Set the population.id to the population created in step 13.

This operation does not support an attribute to set the new user's password. This will be done in the next steps.

  • The destination user's username can be retrieved from the username value returned in the response body. You will need this value in the next steps.

For more information, see Create User.

Request Body

{"email"=>"someone@ping.com", "name"=>{"given"=>"Destination", "family"=>"User"}, "population"=>{"id"=>"{{DestinationPopID}}"}, "username"=>"destination_user_{{$timestamp}}"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring