edit api controller plugin