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

Latest commit

 

History

History
45 lines (35 loc) · 1.61 KB

File metadata and controls

45 lines (35 loc) · 1.61 KB

Get Group Roles

Lists all user's roles in the group/channel.

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

Query Parameters

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

Example Call

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

Example Response

{
    "roles": [
        {
            "rid": "BaE62jfDLXK3Xo6BA",
            "u": {
               "_id": "BkNkw3iKgNyhMbPyW",
               "username": "ronnie.dio",
               "name": "Ronnie James Dio"
            },
            "roles": [
               "moderator"
            ],
            "_id": "ehPuGyZBedznJsQHp"
        }
    ],
    "success": true
}

Change Log

Version Description
0.65.0 Added