How does reference ID work

When posting new comments or alot of other things, I see documentation mention alot about referenceId - can I understand the concept behind and how it works.

Hi Jogndoe

regarding the referenceId , you can thing it as a general ID for everything
there are 2 main component , referenceId and referenceType

let say , if you want a comment to be tie to a post , simple think as
referenceType : post,
referenceId : “post1234”

if you want the the post to be tie to other content , let say you have a article and you want a comment to show under this article , then it will be
referenceType : content ,
referenceId : “article1234”