I’m new to constructing headers and a vendor I’m working with is requiring that a header value.
They provided a custom password and I’m required to add the UTC Date and hour and then the UTC minute divided by 5. All this is in a SHA256 string to hash.
I started with adding apikey to headers with {{apikey}} and then moved to pre-request script
started putting together some const password = "password’ and time / minute, but I have not seen a command to divide?
Looks fine to me, I wrote the other way as it’s just a little easier to interpret for people that don’t work with code regularly. But both ways will work.