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
Key | Datatype | Required | Description |
---|---|---|---|
x-mock-response-name | string | ||
x-mock-response-id | string | UID 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}}"}