New api function putDurations