How to set dynamic URL Path getting from site property in REST call?


Is there any way to change the url path dnamically using variable? I want to try to change the URL path value from site property using a varibales. Please find below snap.

Please help me on this thanks