create the post if the ID doesn't exist, edit if it does