Change delete to put request