Dynamically add global header for a specific Resource

My goal: I have a REST API Resource i am using to hit against my service. I am currently creating a Module where you can select an instance_id of sorts, which I am looking to add a header to the Resource. An example of this would be the header X-Instance-Id: <your_instance_id_hash>. I know I can add it dynamically with the following UI:

Issue: The problem is that I have possibly hundreds of queries and usages of a Resource. Is there any way for me to inject that Resource easily? I have created a Module with a selector that can choose the instance_id. However, I don’t know how to “inject” the header easily so that I don’t need to add this {{selector.id}} call in every place. Is the only option to manually update everywhere?

Hi @Kelwen_Peng,

What type of resource are you working with? Some of them may be able to have variables added to the URL being called via a wildcard.

But for some resources you will need to manually add in an additional query parameter for instance-Id