| Requires any of the roles: | SystemAdministrator, Manager | 
| PATCH | /users/{userId} | 
|---|
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| AccountIds | query | List<string> | No | The account IDs that this user has access to | 
| UserId | path | string | No | The ID of the user | 
| FirstName | query | string | No | The user's first name | 
| LastName | query | string | No | The user's last name | 
| NewPassword | query | string | No | The new password for the user (leave null to not change) | 
| Roles | query | List<string> | No | The roles to associate with the login. Can only specify if system admin | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | form | string | No | |
| IsAuthenticated | form | bool | No | |
| FirstName | form | string | No | |
| LastName | form | string | No | |
| Name | form | string | No | |
| AvatarUrl | form | string | No | |
| EmailAddress | form | string | No | |
| Roles | form | List<string> | No | |
| AccountIds | form | List<string> | No | |
| AccountNames | form | List<string> | No | |
| ManagerAccess | form | UserManagerAccess | No | |
| DashboardPermissions | form | List<DashboardPermissions> | No | 
| ReadOnly | |
| ReadWrite | |
| ReadWriteDelete | 
| ViewFiles | |
| ViewNotifications | |
| ViewSessions | |
| ViewEndpoints | |
| ViewReports | |
| ViewCustomers | |
| ViewFlows | |
| ViewCallCenter | 
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PATCH /users/{userId} HTTP/1.1 
Host: evovoice.io 
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"accountIds":["String"],"userId":"String","firstName":"String","lastName":"String","newPassword":"String","roles":["String"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"id":"String","isAuthenticated":false,"firstName":"String","lastName":"String","name":"String","avatarUrl":"String","emailAddress":"String","roles":["String"],"accountIds":["String"],"accountNames":["String"],"managerAccess":"ReadOnly","dashboardPermissions":["ViewFiles"]}