Advanced inheritance

Consider this as the base:

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

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

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

This 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