Admin

Create a user

POST
Create a user

Request

This endpoint expects an object.
first_name
stringRequired
The first name of the user
last_name
stringRequired
The last name of the user
email
stringRequired
The email of the user
roles
list of enumsRequired
The roles the user has assigned to them
Allowed values: ADMINDEVELOPER
phone
stringOptional
The phone number of the user

Response

This endpoint returns an object
result
object
POST
1curl -X POST https://api.propexo.com/v1/admin/users \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "first_name": "Sally",
6 "last_name": "Jones",
7 "email": "email",
8 "roles": [
9 "ADMIN"
10 ]
11}'
200Successful
1{
2 "result": {
3 "id": "clwktsp9v000008l31iv218hn",
4 "created_at": "2024-03-21T15:38:08.337Z",
5 "updated_at": "2024-03-22T10:59:45.119Z",
6 "first_name": "Sally",
7 "last_name": "Jones",
8 "email": "email",
9 "roles": [
10 "ADMIN"
11 ]
12 }
13}