rename method, make agentid a path param