Modify endpoint to work with stash plugin v2