Update Group Key (Realtime)
- Print
- DarkLight
- PDF
Update Group Key (Realtime)
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
This method has been deprecated and is scheduled for removal in the 8.0.0 release.
This method updates the user subscription to save the E2E key.
Method | Requires Auth |
|---|---|
| Yes |
Payload parameters
Argument | Example | Required | Description |
|---|---|---|---|
|
| Required | The room ID of the subscription. |
|
| Required | The user ID of the subscription. |
|
| Required | The key that will be saved on the subscription. |
Example call
{
"msg": "method",
"method": "e2e.updateGroupKey",
"id": "8",
"params": [
"rid",
"uid",
"key"
]
}Example response
{
"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 |
Was this article helpful?