I want to change the post status when the user click on preview


I want to change the status of the post from "draft" to "publish" when the user clicks on the preview button, then make a URL call and change the status of the post back to "draft" from "publish". Can someone help me with which hook to make use of?