Enable HTTP/2 and Invoke-RestMethod?

Hi
I want to enable HTTP/2 but it seems breaking the API calls when using Invoke-RestMethod
did I have the correct settings?