Newer
Older
server admin: [Admin API](../usage/administration/admin_api)
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
A response body like the following is returned:
```json
{
"messages_per_second": 0,
"burst_count": 0
}
```
**Parameters**
The following parameters should be set in the URL:
- `user_id` - The fully qualified MXID: for example, `@user:server.com`. The user must
be local.
Body parameters:
- `messages_per_second` - positive integer, optional. The number of actions that can
be performed in a second. Defaults to `0`.
- `burst_count` - positive integer, optional. How many actions that can be performed
before being limited. Defaults to `0`.
To disable users' ratelimit set both values to `0`.
**Response**
The following fields are returned in the JSON response body:
- `messages_per_second` - integer - The number of actions that can
be performed in a second.
- `burst_count` - integer - How many actions that can be performed before
being limited.
### Delete ratelimit
The API is:
```
DELETE /_synapse/admin/v1/users/<user_id>/override_ratelimit
```
To use it, you will need to authenticate by providing an `access_token` for a
server admin: [Admin API](../usage/administration/admin_api)
An empty JSON dict is returned.
```json
{}
```
**Parameters**
The following parameters should be set in the URL:
- `user_id` - The fully qualified MXID: for example, `@user:server.com`. The user must
be local.