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

Latest commit

 

History

History
38 lines (28 loc) · 1.4 KB

File metadata and controls

38 lines (28 loc) · 1.4 KB

Get Group Moderators

Lists all group moderators.

HTTP MethodURLRequires Auth
GET/api/v1/groups.moderatorsyes

Query Parameters

KeyExample ValueDescription
roomId*ByehQjC44FwMeiLbXThe group ID. The parameter is required if roomName is not provided.
roomName*testGroupThe group name. The parameter is required if roomId is not provided.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/groups.moderators?roomId=ByehQjC44FwMeiLbX

Example Response

{
    "moderators": [
        {
            "_id": "rocket.cat",
            "username": "rocket.cat",
            "name": Rocket.Cat
        }
    ],
    "success": true
}

Change Log

Version Description
0.70.0 Added