Fix wrong API endpoint for edits