| 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 | 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 | enum | [light,dark,auto] | light - light color theme, dark - dark color theme, auto - color theme based on OS settings |
email_frequency | enum | [1,2] | 1 - never, 2 – instantly |
timezone | string | Time zone | |
subject_by | 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 ] | List of enabled channels for notifications |
notification_settings | object | Channel lists where notifications for specified events should be sent | |
ui_version | 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 | enum | light - light color theme, dark - dark color theme, auto - color theme based on OS settings |
| ui_version | enum | 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 |
| has_password | boolean | Has user password flag |
| Description | Response type | Example |
|---|---|---|
| Validation error | Object |
| Name | Type | Description |
|---|---|---|
| message | string | Error message |
| Description | Response type | Example |
|---|---|---|
| Invalid token | String |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Forbiden | Response body does not exist |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Not found | Response body does not exist |
A schema has not been defined for this response code.
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!