--- title: "Update Group Key (Realtime)" slug: "update-group-key-realtime" updated: 2026-05-14T20:17:23Z published: 2026-05-14T21:51:36Z canonical: "developer.rocket.chat/update-group-key-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. # Update Group Key (Realtime) ![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg) This method updates the user subscription to save the E2E key. | Method | Requires Auth | | --- | --- | | `e2e.updateGroupKey` | Yes | ## Payload parameters | Argument | Example | Required | Description | | --- | --- | --- | --- | | `rid` | `joqpjkmcsw` | Required | The room ID of the subscription. | | `uid` | `uisocs93ndsal` | Required | The user ID of the subscription. | | `key` | `klsosnaca` | Required | The key that will be saved on the subscription. | ## Example call ```json {    "msg": "method",    "method": "e2e.updateGroupKey",    "id": "8",    "params": [        "rid",        "uid",        "key"    ] } ``` ## Example response ```json {    "msg": "result",    "id": "8",    "result": {        "_id":"hBGYqzTeAkiMvpM8S",        "open":true,        "alert":false,        "unread":0,        "userMentions":0,        "groupMentions":0,        "ts":{"$date":1542114790461},        "rid":"iKPufpLHcHaQLF6Bv",        "name":"a1a",        "fname":"a1a",        "customFields":{},        "t":"p",        "u":{            "_id":"AAoQ7b25AAXcJQryY",            "username":"usuario3-1",            "name":null        },        "ls":{            "$date":1542114790461        },        "_updatedAt":{            "$date":1542114878329        },        "roles":["owner"],        "E2EKey":"eyJhbGciOiJBT4JwSCA+9LNyOPfSW94DhcJNgUpzfXsNABiHEV7W01UwwDf6WC5wfHa0JPZATK9QOrVZbhqufXhYOsWO1/vYocX5gfnSFVDWXCsp4aX4XjfydVh0CYB54VUgL5VJwGGlvErTAVJrWblSxuz0xaWLXiu2NpXJ6r6q2xJClt59SDVImUzCdAzmYFMmwAnHbLHZLqyJIB0fXiMDb+WH6dv9I5PMOcTApw1YJkSrsSnbPOQFDTH3i+aQvyryu9E7BMAMp0D1ZDy+uX0gCAyw4kiIIUU1l7mm50BB+TV84yv3TH55v3G/muHxnXjZRyo/SG0VOZCGqgO0J9L0fhyrxyzT9g=="    } } ``` ## Changelog | Version | Description | | --- | --- | | 0.70.0 | Added |