The PUT /environments/{environmentId}/gateways/{gatewayId}/roleAssignments/{gatewayRoleAssignmentsID} operation updates the role assignment for the gateway in the specified environment resource.