# Attach Videos to the Pre-Recorded Stream Playlist
`PUT https://octopus.livepush.io/streams/{stream_id}/config/scheduler/playlist`
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.
- **Tag:** Stream Scheduler
- **Operation ID:** `putStreamsStreamIdConfigSchedulerPlaylist`
- **Authentication:** Bearer token required
- **Docs:** https://developers.livepush.io/stream-scheduler/attach-videos-to-the-pre-recorded-stream-playlist/

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `stream_id` | string | yes | Unique identifier of the pre-recorded live stream |


### Request body

`application/json` (required)

- `videos` (string[]) **required** — List of video IDs to attach to the playlist


```json
{
  "videos": [
    "string"
  ]
}
```


### Example request

```bash
curl -X PUT 'https://octopus.livepush.io/streams/<stream_id>/config/scheduler/playlist' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "videos": [
      "string"
    ]
  }'
```


### Responses


#### 200 — Scheduler playlist updated successfully


#### 401 — Unauthorized


#### 404 — Stream not found

