Create a new corporate user
POST/v1/corporates/:id/users
Creates a new corporate user account for a specific corporate account
Request
Path Parameters
id stringrequired
Corporate ID
- application/json
Body
required
firstName stringrequired
First name
lastName string
Last name
email stringrequiredEmail
phone string
Phone
username stringrequired
User name
Responses
- 201
- 400
- 404
Corporate user created successfully
- application/json
- Schema
- Example (from schema)
Schema
_id stringrequired
The ID of the corporate user
userId stringrequired
The user ID of the corporate user
firstName stringrequired
The first name of the corporate user
lastName string
The last name of the corporate user
username stringrequired
The user name of the corporate user
email stringrequired
The email of the corporate user
phone stringrequired
The phone of the corporate user
isActive booleanrequired
Whether the corporate user is active
{
"_id": "1234567890",
"userId": "1234567890",
"firstName": "James",
"lastName": "Bond",
"username": "jamesbond",
"email": "jamesbond@goodjourney.io",
"phone": "+1234567890",
"isActive": true
}
User name already exists
Corporate not found
Loading...