Admin

Update a user

PUT
https://api.propexo.com/v1/admin/users/:id
Update a user

Path parameters

id
string

Request

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

Response

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