set post.id when POST succeeds so that later on we can update it using the id