api update schedule