Hello,
I'm trying to achieve query authentication in ION API.
With that I mean that I need to pass a string to the header called "Authorization".
Similar to this in Postman:

This string changes, hence I need to be able to set it dynamically. By passing the string in a json/xml or etc.
I've tried a few different approaches so far.
- Authenticating by API Key.
This works, but I cant from what I know set the key header value dynamically, hence it cannot be used.

- Authentication by setting the header as input value by swagger/ion desk, and using Authentication type "Anonymous"
This doesn't work, seems like ION cant write to the header called "Authorization"
I checked other old posts, and discovered someone had similar issues trying to send in data to the Authorization header.
community.infor.com/.../pass-refresh-token-as-a-header-authorization


This would be the optimal approach, but I don't know why this is not working.
- The third and final approach I tried was to set the header in request policy, together with anonymous authentication


This works, but same way here as for the first alternative, I cant set the string dynamically.
Or can I? From what I can read from the infor documentation, you could use help functions such as "SetReqHeader".
But there is no information at all on how to call these functions. Its probably fit in a Transform policy, but it doesn't state on how to call it.
And even if its possible to call it, we don't know if it can set the Authorization header. (Since we couldn't set it by swagger/ion desk I figured we might have the same problem here.)

So if anyone have some inputs here I would be grateful.
The main questions I want to know is why I can't set the header called "Authorization" by swagger/ion desk.
And how the functions inside the policy's can be used, eg "SetReqHeader 'credit-limit' (jsonPathValue '$.creditLimit')
Thanks, Anton