Edit user and his current company settings

Params

Param name Description
user
required

User params

Validations:

  • Must be a Hash

user[name]
optional

User full name

Validations:

  • Must be String

user[email]
optional

Validations:

  • Must be String

user[password]
optional , nil allowed

Validations:

  • Must be String

user[password_confirmation]
optional , nil allowed

Required if “password” param is supplied

Validations:

  • Must be String

user[ssn]
optional , nil allowed

User’s Social Security Number

Validations:

  • Must be String

user[iban]
optional , nil allowed

IBAN

Validations:

  • Must be String

user[bic]
optional , nil allowed

BIC

Validations:

  • Must be String

user[locale]
optional , nil allowed

Validations:

  • Must be one of: en, fi, sv.

user[send_reminder_emails]
optional , nil allowed

Defaults to true

Validations:

  • Must be one of: true, false.

user[show_optional_fields]
optional , nil allowed

Defaults to true

Validations:

  • Must be one of: true, false.

user[settings]
optional , nil allowed

Validations:

  • Must be a Hash

user[settings][easy_expenses]
optional , nil allowed

Whether to activate “Easy Expenses” method. Defaults to false

Validations:

  • Must be one of: true, false.

user[settings][default_cost_centers]
optional , nil allowed

Validations:

  • Must be Hash

user[settings][default_asset_account_id]
optional , nil allowed

Validations:

  • Must be Integer

user[settings][default_expense_account_id]
optional , nil allowed

Validations:

  • Must be Integer

user[settings][mileage_vehicle_category_id]
optional , nil allowed

Validations:

  • Must be Integer

user[settings][allowance_country_category_id]
optional , nil allowed

Validations:

  • Must be Integer

user[settings][netsuite]
optional , nil allowed

NetSuite settings in free form hash

Validations:

  • Must be Hash