Method: Auth0::Api::V2::Users#put_all_user_authentication_methods
- Defined in:
- lib/auth0/api/v2/users.rb
#put_all_user_authentication_methods(user_id, body) ⇒ Object Also known as: update_all_user_authentication_methods
Updates all authentication methods by replacing them with the given ones
401 402 403 404 405 406 |
# File 'lib/auth0/api/v2/users.rb', line 401 def put_all_user_authentication_methods(user_id, body) raise Auth0::MissingUserId, 'Must supply a valid user_id' if user_id.to_s.empty? raise Auth0::MissingParameter, 'Must supply a body' if body.to_s.empty? put "#{users_path}/#{user_id}/authentication-methods", body end |