Scheduling an endpoint to run automatically