Coveo REST API to create a Related Query Component
We are using a Coveo Cloud integrated with sitecore.
We have a Pro Cloud - Coveo Cloud license, we are trying to create a related query component through the rest API.
Where we need to display related Topics as result on the Answer Page when the user type in a query for coveo.
How this can be achieved and what is the best practice to achieve it.
Refered this https://platform.cloud.coveo.com/docs?api=SearchApi#!/Search/post_rest_search_v2 ,
however this returns all the result at the organization level, I am not able to filter the result based on the index source.
Also tried to achieve referring the below link, but that also didn't worked.