Rocket.Chat Extended icon

Rocket.Chat Extended

Extended Rocket.Chat operations: channels, messages, threads, reactions, file upload, and more

Channel → Set Read Only

AI-generated

Summary

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

Links

Discussion