update Schedule api