updateMemberRole

@PatchMapping(headers = "token", path = ""/{" + TEAM_IDENTIFIER_KEY + "}/" + MEMBERS_KEY + "/{" + MEMBER_IDENTIFIER_KEY + "}" + UPDATE_MEMBER_ROLE_ENDPOINT")
open fun updateMemberRole(@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

: payload of the request


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