If there is no post_id, the note will be saved to the pathname.