API to add a schedule item