Create user

POST {{url}}/users

Create user

This request's examples response leverages contextual responses by accessing the request {{$body}} data:

Request Body

{"firstName"=>"{{$randomFirstName}}", "lastName"=>"{{$randomLastName}}", "dob"=>"{{$randomDatePast}}", "userAddress"=>"{{$randomStreetAddress}}", "city"=>"{{$randomCity}}", "country"=>"{{$randomCountry}}"}

HEADERS

KeyDatatypeRequiredDescription
x-mock-response-namestring
x-mock-response-idstringUID of the example response. Note that this id will be different if you have forked the original collection

RESPONSES

status: Created

{"userStatus":"created","userId":"{{$randomUUID}}","firstName":"{{$body 'firstName'}}","lastName":"{{$body 'lastName'}}","dob":"{{$randomDatePast}}","userAddress":"{{$randomStreetAddress}}","city":"{{$randomCity}}","country":"{{$randomCountry}}"}