edit api request