Hi Sukru,
There are several APIs you can use to send a request to get back the searchPath respective of a given storeID, but you might be able to do something even simpler.
You can "create" a valid searchPath to pass in pretty much anywhere you use a searchPath, from the storeID by using this as the "searchPath":
storeID("<id>")
(replacing <id> with your storeID). Depending on the context of where you are using this, you may need to encode the quotes - e.g.
storeID(%22<id>%22)
For example you can view a report with the following:
http://servername/cognos10/cgi-bin/cognos.cgi?b_action=cognosViewer&ui.action=run&ui.object=storeID(%22storeIDhere%22)
(You can read more about this here: https://www.cognoise.com/index.php?topic=29263.0 )
If you decide you really do want to make a separate API call to get the searchPath back from the storeID, here is a sample REST GET request to accomplish this:
http://<server>:9300/bi/v1/objects/<storeid>?fields=searchPath&target.searchPath
(replacing <servername> and <storeID> with your values).
I haven't tried, but I think you can do something similar with the public REST API's "content" endpoint.
------------------------------
Jim Boland
LinkedIn: https://www.linkedin.com/in/jimboland
Website: https://coreinsightz.com
Email: jimboland@coreinsightz.com
------------------------------