01 Oct 2021 08:01 AM - last edited on 04 Oct 2021 10:39 AM by MaciejNeumann
Hi,
I am trying to create a new problem notification using the API, but there is no option to toggle Secret Http Header Value, does anyone have idea how to achieve this.
Solved! Go to Solution.
29 Oct 2021 07:59 PM
You are exactly right, from the API there is no designator to enable if this is a secret http value or not. It can only be done in the UI as of today. I would recommend tossing in a RFE so they can build that in to the API.
Test Results off:
ON:
I wonder if you just need to pass the value encoded for it to work, but i'd have to leave that to be confirmed from a Dev person.
15 Nov 2021 06:34 AM - edited 15 Nov 2021 06:35 AM
Thanks Chad for the confirmation.
19 Apr 2022 08:16 PM - edited 19 Apr 2022 08:16 PM
Hi @nakb, @ChadTurner,
If you use the settings API (POST /api/v2/settings/objects) instead of the problem notifications API, you can create secret HTTP header values through the API. We're in the process of figuring out how to communicate this to the broader audience. Here is an example payload:
After the POST call, you can't read the secret values in the UI (duh), but if you try it out, e.g. with webhook.site, you'll see that this works just fine.
Hope this helps,
Cheers,
Dirk
09 May 2024 11:27 AM
This is a good answer, would be good to have this somewhere in the API docs! Unless I just couldn't find it there that is...