Use stash REST api for merge