Actions53
- Channel Actions
- Direct Message Actions
- Message Actions
- User Actions
Channel → Set Read Only
AI-generatedSummary
Set a channel read‑only
Inputs
- roomId (required) — The ID of the channel or private group to set as read‑only.
- readOnly (required) — Whether to make the channel read‑only; defaults to true.
- specifyRoomManually — Toggle to manually enter the room ID instead of selecting from the channel list.
Output shape
a single channel object (the updated channel details)
The response may be empty on success; errors are thrown unless continueOnFail is enabled.
Examples
Example 1: Make a public channel read‑only
operation=setReadOnly; channelType=Public Channel; specifyRoomManually=false; roomId=GENERAL; readOnly=true
Example 2: Make a private group read‑only using manual ID
operation=setReadOnly; specifyRoomManually=true; roomId=GROUP_123; readOnly=true