Update Group Key (Realtime)
    • Dark
      Light
    • PDF

    Update Group Key (Realtime)

    • Dark
      Light
    • PDF

    Article summary

    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

    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

    {
        "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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.