is it possible to take this domain name as a variable in http type protocol when i creating a element so that I can use this protocol in my api call because after changing the domain for different device(during creation of new element) api working for same domain.
Yes Chirangee Lal it is possible after creating a protocol when you are adding an element to that protocol that time you can give domain/host so automatically it will be linked with all your API configured into that protocol. Instead of giving the complete url just give the end point and API.