To update a post, one should send a put request.