Overview
Updates user settings.
Request
Authentication: Add authentication headers to the request. See Authentication
Method:
POST
Rate limit:
100 requests/second
Endpoint: https://API domain/jim/users/updsettings
Content-Type:
application/json
Request parameters
| Parameter | Data type | Required | Description | |
|---|---|---|---|---|
| language | string | Yes | Push notification language. | |
| friend_verify_type | int | Yes | Friend verification: 0 no verification required; 1 approval required; 2 reject all friend requests. | |
| grp_verify_type | int | Yes | Group join verification: 0 no verification required; 1 my approval required; 2 reject all group invitations. | |
| undisturb.switch | bool | No | Whether to enable global Mute Notifications. When enabled, messages are muted during the time period specified in rules; if no period is specified, notifications are muted all day. | |
| undisturb.timezone | string | No | Time zone for the period. If empty, the default time zone where the server is deployed is used. | |
| undisturb.rules.start | string | No | Start time for Mute Notifications, in HHmm 24-hour format. | |
| undisturb.rules.end | string | No | End time for Mute Notifications, in HHmm 24-hour format. |
Request example
POST /jim/users/updsettings HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"language":"zh_CN",
"friend_verify_type":1,
"grp_verify_type":1,
"undisturb":{
"switch":true,
"timezone":"",
"rules":[
{
"start":"1100",
"end":"1500"
}
]
}
}
Response example
{
"code":0,
"msg":"sucess"
}
Response codes
| Response codes | Description |
|---|