# Toggle scheduler looping
`PUT https://octopus.livepush.io/streams/{stream_id}/config/scheduler/loop`
Enables or disables looping for the scheduler playlist.

When enabled, the playlist will repeat indefinitely, allowing
continuous 24/7 pre-recorded live streaming.
- **Tag:** Stream Scheduler
- **Operation ID:** `putStreamsStreamIdConfigSchedulerLoop`
- **Authentication:** Bearer token required
- **Docs:** https://developers.livepush.io/stream-scheduler/toggle-scheduler-looping/

### Path parameters

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


### Request body

`application/json` (required)

- `enabled` (boolean) **required** — Whether playlist looping is enabled


```json
{
  "enabled": false
}
```


### Example request

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


### Responses


#### 200 — Scheduler looping configuration updated


#### 401 — Unauthorized


#### 404 — Stream not found

