...
| Parameter | Type | Description |
|---|---|---|
| token (required) | string | Access token. You can obtain a token by making a request |
| userId (required) | string | The ID of the user whose profile you want to update |
| email (optional) | string | The email of the user |
| password (optional) | string | The password of the user |
| login (required) | string | The login of the user |
| departmentId (required) | string | The department ID the user belongs to |
| role (optional) | string | If you assign one of the standard roles to the user (except for Account Owner), use one of the following values for the role parameter:
Learn more about using the role parameter in the Important section |
| roleId (required if the custom value is used for the role parameter) | string | The roleId parameter is used, if you assign one of the custom roles to the user. In this case, you will need to use the needed role ID for the roleId parameter. Learn more about using the roleId parameter in the Important section. |
| manageableDepartmentIds (required if the user's role is Department Administrator or a custom role) | string[] | An array with the IDs of the departments the user will manage |
| groups (optional) | string[] | Array of IDs of the groups the user will be added to |
| roles (optional) | string[] | An array of data using which you can assign one or two roles to a user. You will need to use the needed role ID for the roleId parameter inside the array. If you assign two roles, one of them will be Learner, and the second role — one of the administrative roles (Account Administrator, Department Administrator,or a custom role). Learn more about using the roles parameter in the Important section. |
| about_me (optional) | string | A user's personal information in the About me field |
| Panel | ||||||
|---|---|---|---|---|---|---|
| ||||||
|
Return Value
After the request has been completed, the system returns an object with the following properties:
...