Admin

Create a user

POST
https://api.propexo.com/v1/admin/users
Create a user

Request

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

Response

This endpoint return an object.
result
object
POST
/v1/admin/users
curl -X POST https://api.propexo.com/v1/admin/users \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"first_name": "first_name",
"last_name": "last_name",
"email": "email",
"roles": [
"ADMIN"
]
}'
Response
{
"result": {
"id": "id",
"created_at": "created_at",
"updated_at": "updated_at",
"first_name": "first_name",
"last_name": "last_name",
"email": "email",
"roles": [
"ADMIN"
]
}
}