def set_parameter(self, parameter: AttributeParameter):
        """Set a parameter for the route.
        An existing parameter with same parameter type will be replaced by this new one.
        """
        for p in self.parameters:
            if p.parameter_type == parameter.parameter_type:
                self.parameters.remove(p)
                break
        self.parameters.append(parameter)
Set a parameter for the route.
        An existing parameter with same parameter type will be replaced by this new one.
        
argilla/src/argilla/records/_mapping/_routes.py