change Member Role

@PatchMapping(path = ""/{" + GROUP_IDENTIFIER_KEY + "}" + CHANGE_MEMBER_ROLE_ENDPOINT", headers = [] )
open fun changeMemberRole(@PathVariable(value = "id") id: String, @RequestHeader(value = "token") token: String, @PathVariable(value = "group_id") groupId: String, @RequestBody payload: Map<String, String>): String

Method to change the role of a group member

Return

the result of the request as String

Parameters

id

The identifier of the user

token

The token of the user

groupId

The identifier of the group where change the role of a member

payload

: payload of the request


             {
                 "id" : "identifier of the member", -> [String]
                 "role": "new role of the member" -> [InvitationStatus]
             }