--- title: "Favorite/Unfavorite a Room (Realtime)" slug: "favoriteunfavorite-a-room-realtime" updated: 2026-05-14T21:46:39Z published: 2026-05-14T21:46:39Z canonical: "developer.rocket.chat/favoriteunfavorite-a-room-realtime" --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # Favorite/Unfavorite a Room (Realtime) ![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg) Mark or unmark a room as favorite. | Method | Requires Auth | | --- | --- | | `toggleFavorite` | Yes | ## Payload parameters | Argument | Example | Required | Description | | --- | --- | --- | --- | | `roomId` | `64a1f373376181965ab77f54` | Required | The room ID. | | `favorite` | `false` | Optional: Default: `true` | `true` - Mark as favorite `false` - Remove from favorite | ## Example call ```json {    "msg": "method",    "method": "toggleFavorite",    "id": "16",    "params": [        "64a1f540376181965ab77f5b",        false    ] } ``` ## Example response ```json {    "msg": "result",    "id": "16",    "result": 1 } ```