Params

Param name Description
user_id
required

User ID.

Validations:

  • Must be a Integer

time_balance
required

Time balance parameters.

Validations:

  • Must be a Hash

time_balance[balance_type]
required

Balance type: work_time or vacation.

Validations:

  • Must be one of: work_time, vacation.

time_balance[date]
required

Date of time balance calculation. The value of the balance is the value as of the end of the specified day.

Validations:

  • Must be a String

time_balance[value]
required

The value of the imported time balance. Can be either positive or negative.

Balance type Units Accepted values
work_time minutes integer
vacation days integer / floating-point

Validations:

  • Must be a Numeric