Skip to main content
POST
/
v1
/
portal
/
rooms
/
{room_name}
/
clear
curl -X POST https://hapi.7331.org/v1/portal/rooms/general/clear \
  -b cookies.txt
{
  "ok": true,
  "cleared": 42
}
Requires an active session cookie with Admin or higher permissions. Deletes all messages from the room’s portal stream and broadcasts a portal:cleared event to all clients in the room.
room_name
string
required
Name of the room to clear.

Response

ok
boolean
required
true if the operation succeeded.
cleared
integer
required
Number of messages cleared.
curl -X POST https://hapi.7331.org/v1/portal/rooms/general/clear \
  -b cookies.txt
{
  "ok": true,
  "cleared": 42
}