Advanced inheritance

Consider this to be the base:

{
    "headers": {
        "authorization": "Bearer {{connection.accessToken}}"
    }
}

In a module, you need to add a custom header programmatically.

{
    "headers": "{{headerBuilderFunction()}}"
}

That results in the base being overwritten by the result from the IML function. To merge both collections, use this special IML syntax inside the module:

{
    "headers": {
        "{{...}}": "{{headerBuilderFunction()}}"
    }
}

Last updated