I wasn't able to find a direct answer, here are some relevant sources:
Deactivate and Reactivate IdP(1) : This Discord discussion explains that instead of using the deprecated deactivate/reactivate endpoints, you should add or remove the IdP from the login policy to control its availability to users.