| Name | Type | Reference |
|---|---|---|
| idrequired | integer | User ID |
| Name | Value |
|---|---|
| Content-Type | application/json |
| Name | Type | Constraints | Description |
|---|---|---|---|
username | string | Username for mentions and login | |
full_name | string | minLength: 1 maxLength: 128 | Full name |
initials | string | minLength: 2 maxLength: 2 | Initials |
avatar_type | integer (enum) | [1,2,3] | 1 – gravatar, 2 – initials, 3 - uploaded |
password | string | minLength: 6 | New password |
old_password | string | null | minLength: 6 | Old password |
lng | string | Language | |
default_space_id | integer | null | Default space | |
theme | string (enum) | [light,dark,auto] | light - light color theme, dark - dark color theme, auto - color theme based on OS settings |
email_frequency | integer (enum) | [1,2] | 1 - never, 2 – instantly |
timezone | string | Time zone | |
subject_by | integer (enum) | [1,2] | 1 - id and title, 2 – action |
email_settings | object | Email settings | |
telegram_settings | object | Telegram settings | |
slack_settings | object | Slack settings | |
notification_enabled_channels | array | [ inner, mobile_app, email, slack, telegram, max_messenger ] | List of enabled channels for notifications |
notification_settings | object | Notification channels for your own profile in this company. To change one event, read notification_settings with GET /users/current, edit the entry and send the merged map. Omitting either meeting event below preserves its stored setting. Other omitted entries are removed. Each meeting event defaults to inner, mobile_app and email until configured. Use [] to disable it. Unknown event or channel names return 400. | |
ui_version | integer (enum) | [1,2] | 1 - old ui. 2 - new ui |
| Description | Response type | Example |
|---|---|---|
| Success | Object |
| Name | Type | Description |
|---|---|---|
| id | integer | User id |
| full_name | string | User full name |
string | User email | |
| username | string | Username for mentions and login |
| updated | string | Last update timestamp |
| created | string | Create date |
| avatar_initials_url | string | Default user avatar |
| avatar_uploaded_url | null | string | User uploaded avatar url |
| activated | boolean | User activated flag |
| initials | string | User initials |
| avatar_type | enum | 1 – gravatar, 2 – initials, 3 - uploaded |
| lng | string | Language |
| sd_telegram_id | integer | Service desk telegram id |
| timezone | string | Time zone |
| news_subscription | boolean | news subscription flag |
| theme | string | light - light color theme, dark - dark color theme, auto - color theme based on OS settings |
| ui_version | integer | 1 - old ui. 2 - new ui |
| default_space_id | null | integer | Default space |
| email_frequency | enum | 1 - never, 2 – instantly |
| email_settings | object | Email settings |
| work_time_settings | object | Work time settings |
| telegram_id | integer | Telegram id |
| telegram_settings | object | Telegram settings |
| notification_settings | object | Optional in the PATCH response. Updating only full_name omits this field. Read your stored settings with GET /users/current. The fields below are examples. Meeting recording and transcription notifications each default to inner, mobile_app and email when their key is absent. An empty array disables that event. Delivery requires the channel to be enabled on the installation and in notification_enabled_channels. The slack, telegram and max_messenger channels require a connected account, mobile_app requires a logged-in device, and email requires an unblocked address. |
| has_password | boolean | Has user password flag |
| permissions | integer | Direct numeric company permissions returned by this PATCH endpoint. Group grants are included in named_permissions but do not change this numeric field. |
| named_permissions | object | The map contains every permission name supported by the server; ungranted permissions are false. Contains effective permissions in the current company, including active group and default-group grants. Owners have all supported permissions. The MCP field below is one example; see the named company permissions reference linked above. Named-only permissions have no bit in the integer permissions mask. |
| own_named_permissions | object | The map contains every permission name supported by the server; ungranted permissions are false. Contains permissions granted directly to the user in the current company, without group grants. Owners have all supported permissions. The MCP field below is one example; see the named company permissions reference linked above. |
| Description | Response type | Example |
|---|---|---|
| Validation error. Unknown notification event and channel names return wrong notification_settings event name <event> and wrong notification_settings channel name <channel> respectively. | Object |
| Name | Type | Description |
|---|---|---|
| message | string | Error message |
| Description | Response type | Example |
|---|---|---|
| Request schema validation error | Object |
| Name | Type | Description |
|---|---|---|
| message | string | Error message |
| Description | Response type | Example |
|---|---|---|
| Invalid token | String |
| Description | Response type | Example |
|---|---|---|
| Forbiden | Response body does not exist |
| Description | Response type | Example |
|---|---|---|
| Not found | Response body does not exist |
Path Parameters
1 curl --request PATCH \
2 --url 'https://example.kaiten.ru/api/latest/users/{id}' \
3 --header 'Accept: application/json' \
4 --header 'Content-Type: application/json'
5 Response
ClickTry It!to start a request and see the response here!