Create Private Group
    • Dark
      Light
    • PDF

    Create Private Group

    • Dark
      Light
    • PDF

    Article summary

    Create a private group.

    Method

    Requires Auth

    Permission

    createPrivateGroup

    Yes

    create-p

    Payload parameters

    Argument

    Example

    Required

    Description

    name

    testrc

    Required

    The name of the channel/group.

    members

    ["test.queue"]

    Optional

    An array containing the usernames of users to be included in the channel.

    readonly

    true

    Optional

    A Boolean to indicate if the room is read-only or not.

    customFields

    { “priority”: “low” }

    Optional

    Custom fields for the channel.

    extraData

    Optional

    Any extra data to associate with the channel.

    Example call

    {
        "msg": "method",
        "method": "createPrivateGroup",
        "id": "44728",
        "params": [
    	"testrc7",
    	["test.queue"],
    	true
    ]
    }

    Example response

    {
        "msg": "result",
        "id": "44728",
        "result": {
            "rid": "64e543ff5fb08444f3a71f94",
            "inserted": true,
            "_id": "64e543ff5fb08444f3a71f94",
            "_updatedAt": {
                "$date": 1692746751431
            },
            "fname": "testrc7",
            "customFields": {},
            "name": "testrc7",
            "t": "p",
            "msgs": 0,
            "usersCount": 0,
            "u": {
                "_id": "4SebuZCHhQKvTt23o",
                "username": "funke.olasupo",
                "name": "Funke Olasupo"
            },
            "ts": {
                "$date": 1692746751431
            },
            "ro": true,
            "default": false,
            "sysMes": true
        }
    }

    Changelog

    Version

    Description

    0.38.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.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence