POST Moderate users
Set a global user ban
userid : required The applicaiton provided userid of the user to ban applyeffect : required true or false.
- userid: (required) The applicaiton provided userid of the user to ban
- applyeffect: (required) true or false. If true, user will be set to banned state. If false, will be set to non-banned state.
- expireseconds: (optional) if not specified, the ban is permanent until user is restored. If specified, then the ban will be temporarily applied for the specified number of seconds.
Request
Parameters
Values in the path and query string.
appid path string TalkLabs ID required
The TalkLabs application ID assigned to your account.
Example:your-app-id userid path string customer-defined required
The customer defined user ID from your application or identity system.
Example:u-8842 Request
JSON body
Send as application/json.
applyEffect boolean required
expireSeconds integer · int32
Request example
{
"applyEffect": true
} Request examples
Common variations
Historical examples filtered through the current request schema.
Ban User
{
"applyEffect": true
} Restore User
{
"applyEffect": true
} Response
Status codes
Every JSON response uses the API result envelope.
200 OK ApiResult 400 Bad Request ApiResult 403 Forbidden ApiResult 500 Internal Server Error ApiResult