Create Private Groups
    • Dark
      Light
    • PDF

    Create Private Groups

    • Dark
      Light
    • PDF

    Article summary

    Create a private channel.

    Method

    Requires Auth

    Permission

    createPrivateGroup

    Yes

    create-p

    Payload parameters

    Argument

    Example

    Required

    Description

    name

    channelname

    Required

    The name of the channel.

    members

    ["test.rc"]

    Optional;

    Default: []

    An array of usernames, represented as strings, for the users designated to be included in the channel.

    If the array is empty, only the user making the request to this method will be added to the channel.

    Example call

    {
        "msg": "method",
        "method": "createPrivateGroup",
        "id": "8d89",
        "params": [
             "test-private-websockset",
            ["rocket.cat"]
        ]
    }

    Example response

    {
        "msg": "result",
        "id": "8d89",
        "result": {
            "rid": "64a37803730ef04d3db2556f",
            "inserted": true,
            "fname": "test-private-websockset",
            "_updatedAt": {
                "$date": 1688434691876
            },
            "customFields": {},
            "name": "test-privadte-websockset",
            "t": "p",
            "msgs": 0,
            "usersCount": 0,
            "u": {
                "_id": "LFdhbcNHx5zsMA7T4",
                "username": "test.rc",
                "name": "Test RC"
            },
            "ts": {
                "$date": 1688434691876
            },
            "ro": false,
            "default": false,
            "sysMes": true,
            "_id": "64a37803730ef04d3db2556f"
        }
    }


    Was this article helpful?

    What's Next
    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.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence