POST Moderate chat
Purge User Messages
command : The command to execute.
- command: The command to execute. In this case, "*purge "
POST ARGUMENTS
userid: (required) The userid of the user owning the messages to be purged
byuserid: (optional) The userid of the user executing the purge command. If provided, this validates that the user executing the command has the rights to do it
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 roomid path string TalkLabs ID required
The TalkLabs assigned room ID returned when the room was created.
Example:room-id Request
JSON body
Send as application/json.
userid string customer-defined required
The customer defined user ID from your application or identity system.
byuserid string customer-defined
Request example
{
"userid": "u-8842",
"byuserid": "admin"
} Response
Status codes
Every JSON response uses the API result envelope.
200 OK ApiResult 400 Bad Request ApiResult 403 Forbidden ApiResult 404 Not Found ApiResult 500 Internal Server Error ApiResult