Use endpoint as param