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

Latest commit

 

History

History
35 lines (25 loc) · 1.29 KB

File metadata and controls

35 lines (25 loc) · 1.29 KB

Add Group Moderator

Gives the role of moderator for a user in the current group/channel.

HTTP MethodURLRequires Auth
POST/api/v1/groups.addModeratoryes

Body Parameters

KeyExample ValueDescription
roomId*ByehQjC44FwMeiLbXThe group ID.
userId*nSYqWzZ4GsKTX4dyKThe user ID.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type: application/json" \
     http://localhost:3000/api/v1/groups.addModerator \
     -d '{ 
          "roomId": "ByehQjC44FwMeiLbX", 
          "userId": "nSYqWzZ4GsKTX4dyK" }'

Example Response

{
   "success": true
}

Change Log

Version Description
0.49.4 Added