Update Limits
单独调整用户的两级限流(每秒/每小时请求数)。
用 None 判断而非真值判断:显式的 0 是合法值(表示"不限速/封禁"), 若写成 if body.rate_limit_per_second: 会导致传 0 被静默忽略。
副作用:写库(commit)+ 清该用户鉴权缓存(限流值缓存在其中)。
post/admin/users/{user_id}/limits
Request
- Base URL: https://api.twtapi.com (the document declares no server; this is the origin it was published from)
- URL: https://api.twtapi.com/admin/users/{user_id}/limits
- Auth: none declared
Path parameters
user_idinteger required
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 2 revisions of this API.