# Set event videos
`PUT https://octopus.livepush.io/streams/{stream_id}/config/scheduler/{event_id}/playlist`
Replaces the videos one event plays. Note the path has no `/events/`
segment.

This also sets the stream's default playlist to the same list. Fails
with `max_runtime_per_event_reached` when the videos are longer than
the plan's per-event runtime.

Requires a token with the `streams.write` scope.
- **Tag:** Stream Scheduler
- **Operation ID:** `putStreamsStreamIdConfigSchedulerEventIdPlaylist`
- **Authentication:** Bearer token required
- **Docs:** https://developers.livepush.io/stream-scheduler/set-event-videos/

### Path parameters

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


### Request body

`application/json` (required)

- `videos` (string[]) **required** — Video ids, in playback order


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


### Example request

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


### Responses


#### 200 — Event videos updated

- `success` (boolean)


```json
{
  "success": true
}
```


#### 400 — Unknown stream or event


#### 401 — Unauthorized

