change Member Role

@PatchMapping(headers = "token", path = ""/{" + TEAM_IDENTIFIER_KEY + "}/" + MEMBERS_KEY + "/{" + MEMBER_IDENTIFIER_KEY + "}" + CHANGE_MEMBER_ROLE_ENDPOINT" )
open fun changeMemberRole(    @RequestHeader(value = "token") token: String,     @PathVariable(value = "user_id") userId: String,     @PathVariable(value = "team_id") teamId: String,     @PathVariable(value = "member_id") memberId: String,     @RequestBody payload: Map<String, Any>): String

Method to change the role of a member

Return

the response of the request as String

Parameters

token

The token of the user

userId

The identifier of the user

teamId

The identifier of the team where change the member role

memberId

The identifier of the member to change its role

payload

The payload of the request


                             {
                                 "role" : ["the role to set"] -> [{TeamRole }],
                             }