Skip to main content
POST
/
v1
/
portal
/
chats
/
{chat_id}
/
config
/
update
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/config/update \
  -H "Content-Type: application/json" \
  -b "psession=YOUR_SESSION" \
  -d '{"wipe_preset": "4h", "history_visible": false}'
{
  "message": "Room config updated"
}

Documentation Index

Fetch the complete documentation index at: https://docs.7331.org/llms.txt

Use this file to discover all available pages before exploring further.

Partial update — only provided fields are applied. Replaces the old PUT .../wipe and PUT .../settings endpoints. Auth: can_manage_room() — chat owner always allowed. For publicly visible chats (official or public), users who outrank the chat owner (Mod+ for User-owned, Admin+ for Mod-owned, Owner for all) may also update config.
chat_id
integer
required
Chat ID.
wipe_preset
string
Auto-wipe preset: 1m, 15m, 1h, 4h, or 24h. Restarts the wipe timer and emits a system message.
history_visible
boolean
Whether new joiners can see message history. When false, only chat managers see history.
allow_control_requests
boolean
Whether viewers can request keyboard/mouse control.
locked_controls
boolean
Whether only the owner/admin can grant control.
implicit_hosting
boolean
Whether the first joiner automatically gets host control.
inactive_cursors
boolean
Whether to show cursors for non-controlling users.
slug
string | null
Vanity slug for the chat. Setting a value promotes the chat to public; sending null clears the slug and reverts to private.
name
string
New chat display name.

Response

Returns a SuccessResponse with a confirmation message.
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/config/update \
  -H "Content-Type: application/json" \
  -b "psession=YOUR_SESSION" \
  -d '{"wipe_preset": "4h", "history_visible": false}'
{
  "message": "Room config updated"
}