# Stream Scheduler Scheduled and automated streaming ## Attach Videos to the Pre-Recorded Stream Playlist - [PUT /streams/{stream_id}/config/scheduler/playlist](https://api.livepush.io/openapi/stream-scheduler/paths/~1streams~1%7Bstream_id%7D~1config~1scheduler~1playlist/put.md): Attaches one or more existing videos to the scheduler playlist of a pre-recorded live stream. The playlist defines the playback order for scheduled or looping pre-recorded live streams. ## Configure scheduler looping - [PUT /streams/{stream_id}/config/scheduler/loop](https://api.livepush.io/openapi/stream-scheduler/paths/~1streams~1%7Bstream_id%7D~1config~1scheduler~1loop/put.md): Enables or disables looping for the scheduler playlist. When enabled, the playlist will repeat indefinitely, allowing continuous 24/7 pre-recorded live streaming. ## Schedule a pre-recorded live stream - [POST /streams/{stream_id}/config/scheduler/events](https://api.livepush.io/openapi/stream-scheduler/paths/~1streams~1%7Bstream_id%7D~1config~1scheduler~1events/post.md): Schedules a pre-recorded live stream to start at a specific date and time using the configured playlist. This endpoint is used for both one-time scheduled events and looping (24/7) streams. ## Delete scheduled stream event - [DELETE /streams/{stream_id}/config/scheduler/events/{event_id}](https://api.livepush.io/openapi/stream-scheduler/paths/~1streams~1%7Bstream_id%7D~1config~1scheduler~1events~1%7Bevent_id%7D/delete.md): Deletes a scheduled pre-recorded live stream event before it starts. This operation does not affect the stream configuration or playlist. ## End active scheduled stream - [PUT /streams/{stream_id}/config/scheduler/events/{event_id}/end](https://api.livepush.io/openapi/stream-scheduler/paths/~1streams~1%7Bstream_id%7D~1config~1scheduler~1events~1%7Bevent_id%7D~1end/put.md): Stops a currently running pre-recorded live stream event. Ending a stream is not instantaneous and may take a few seconds to fully stop playback and disconnect destinations.