--- title: "Set Room Key ID (Realtime)" slug: "set-room-key-id-realtime" updated: 2026-05-14T20:16:36Z published: 2026-05-14T21:51:36Z canonical: "developer.rocket.chat/set-room-key-id-realtime" stale: true --- > ## 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. # Set Room Key ID (Realtime) ![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg) This method marks an existing room as encrypted. | Method | Required Auth | | --- | --- | | `e2e.setRoomKeyID` | Yes | ## Payload parameters | Argument | Example | Required | Description | | --- | --- | --- | --- | | `rid` | `kjfospmc9d` | Required | The room ID that is being updated. | | `keyID` | `uriejscjsroencz` | Required | The key ID to add to the room. | ## Example call ```json {    "msg": "method",    "method": "e2e.setRoomKeyID",    "id": "8",    "params": [        "rid",        "keyID"    ] } ``` ## Example response ```json {    "msg": "result",    "id": "8",    "result": 1 } ``` ## Changelog | Version | Description | | --- | --- | | 0.70.0 | Added |