Disabling password login

Hello,
I have a question. Is there a possibility to disable a password credential type for a particular user? I know that there is a rest api endpoint disable-credential-types but when I use it it seems like there is no effect.
Thank you