Add api and action to edit report