You will need to pass the connection name instead of the connection ID for the connection parameter. For example “Username-Password-Authentication”.
Thanks @rueben.tiow for a quick answer. I wasted a couple of hours on it. Pretty disappointing to see the omnipresend REST API disregarded so much in Auth0 starting from documentation