Users
Update an existing user
Updates an existing user identified by the `email` in the request body.
PUT
bearerAuthheader
AuthorizationBearer <token>API key sent as Authorization: Bearer <API_KEY>.
application/json- body
name?stringThe user's first name
Length
2 <= length <= 32lastname?stringThe user's last name
Length
1 <= lengthemail?stringThe user's email address
Format
emailphone_work?|The user's work phone number
roles?array<>The user's roles
User successfully updated
application/json- response
_id?stringUser ID
name?stringThe user's first name
lastname?stringThe user's last name
email?stringThe user's email address
Format
emailphone_work?stringThe user's work phone number
group?stringThe user's group ID
roles?array<string>The user's roles
curl -X PUT 'https://api.getventia.com/api/v1.0/users' \ -H 'Content-Type: application/json' \ -d '{ "name": "John", "lastname": "Doe", "email": "john.doe@example.com", "phone_work": "+1234567890", "roles": [ "user", "super" ]}'{ "_id": "64b7654c3f3ae9b9d1e7c5d8", "name": "John", "lastname": "Doe", "email": "john.doe@example.com", "phone_work": "+1234567890", "group": "64b7654c3f3ae9b9d1e7c5d7", "roles": [ "user", "super" ]}