Add a User to a Room
    • Dark
      Light
    • PDF

    Add a User to a Room

    • Dark
      Light
    • PDF

    Article summary

    Add a user to a room.

    Method

    Requires Auth

    addUserToRoom

    Yes

    Payload parameters

    Argument

    Example

    Required

    Description

    data

    {

    "rid": "64f0f82c21c26843a68c1f7ba",

    "username": "rodriq"

    }

    Required

    An object of the roomid and userId

    Example call

    {
        "msg": "method",
        "method": "addUserToRoom",
        "id": "2",
        "params": [
            {
    	"rid":"64f0f82c2c26843a68c1f7ba",
            "username":"rodriq"
    	}
        ]
    }

    Example response

    Success

    {
      "msg":"result",
      "id":"2"
    }

    Error

    Any of the following errors can occur on the endpoint.

    • Authorization: Requires an authentication token for the request to be made.

    {
        "status": "error",
        "message": "You must be logged in to do this."
    }


    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