Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
61 lines (48 loc) · 1.61 KB

File metadata and controls

61 lines (48 loc) · 1.61 KB

Add a User to a Room

Add User To a Room.

Name Requires Auth Permission Setting
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.

{% tabs %} {% tab title="Authorization" %}

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

{% endtab %} {% endtabs %}