def update_alarm(alarm_id, device_id, opts)
      opts[:time] = format_time opts[:time], include_timezone: true
      post("/user/#{@user_id}/devices/tracker/#{device_id}/alarms/#{alarm_id}.json", opts)
    end
def update_alarm(alarm_id, device_id, opts)
      opts[:time] = format_time opts[:time], include_timezone: true
      post("/user/#{@user_id}/devices/tracker/#{device_id}/alarms/#{alarm_id}.json", opts)
    end
Update an existing alarm

 @param [Integer, String] alarm_id The id of the alarm
 @param [Integer, String] device_id The id of the device you would like to
   manage the alarm on
 @param [Hash] opts Alarm settings
 @option opts [DateTime, Time, String] :time Time of the alarm
 @option opts [TrueClass, FalseClass] :enabled
 @option opts [TrueClass, FalseClass] :recurring One time or recurring alarm
 @option opts [String] :weekDays The days the alarm is active on as a list of
   comma separated values: MONDAY, WEDNESDAY, SATURDAY. For recurring only
 @option opts [Integer] :snoozeLength Minutes between the alarms
 @option opts [Integer] :snoozeCount Maximum snooze count
 @option opts [String] :label Label for the alarm

 @return [Hash] Hash containing updated alarm settings