Method: Code42::API::User#update_user

Defined in:
lib/code42/api/user.rb

#update_user(id, attrs = {}) ⇒ Object

Updates a user

Examples:

client.update_user(2, email_promo: true, first_name: 'John')

Parameters:

  • The user id to be updated

  • (defaults to: {})

    A hash of attributes to update



21
22
23
# File 'lib/code42/api/user.rb', line 21

def update_user(id, attrs = {})
  object_from_response(Code42::User, :put, "user/#{id}", attrs)
end