autonomous_room_moderation_apply
# autonomous_room_moderation_apply
Block one channel member from sending messages in an autonomous room of the Messenger app (pApp D00003) for 1 to 60 minutes, as the console message menu does. Requires the member distinctId (from the channel member list) and disabledMinutes. The member must belong to this channel. The block ends by itself; the console has no early unblock. Hiding a message (change hideMessageId) cannot be undone and is done on the console: the answer is a console link and nothing is sent. A lost receipt stays pending and is never resent; task_resume only observes, and prepared work needs the identical apply. Called without confirmToken it previews and returns a confirmToken; repeating the same input with it executes once.
## Inputs
| Field | Required here | Contract |
| --- | --- | --- |
| `target` | Yes | object |
| `target.roomId` | Yes | string; min length 1; max length 200; pattern `^[^/?#%\\\s]+$` |
| `change` | Yes | object or object |
| `change.distinctId` | Yes | When `change` is alternative 1: string; min length 1; max length 256; pattern `^[A-Za-z0-9_-]+$`; The channel member to block from sending, by member distinctId. |
| `change.disabledMinutes` | Yes | When `change` is alternative 1: integer; minimum 1; maximum 60; Minutes the member cannot send, 1 to 60, as in the console block dialog [str_2731]. |
| `change.hideMessageId` | Yes | When `change` is alternative 2: string; min length 1; max length 200; The message to hide; hiding is done on the console. |
| `change.confirmation` | Yes | When `change` is alternative 2: `HIDE_AUTONOMOUS_ROOM_MESSAGE` |
| `confirmToken` | No | string; pattern `^ct[a-f\d]{32}$`; The confirmToken from this tool's preview result. Omit it to preview; repeat the same input with it to execute. |