build uri with id