# Update scheduled event
`PUT https://octopus.livepush.io/streams/{stream_id}/config/scheduler/events/{event_id}`
Changes an event. Only the fields sent are written, with one
exception: **always resend `repeatCount`**, because a request that
leaves it out resets it to `0`.

`immediateStart: true` moves the start to about 10 seconds from now.
`datetimeEndExplicit: false` clears an explicit end time.

Fails if the event has already finished. Plan checks are the same as
for creating an event.

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

### 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)

- `label` (string)
- `datetime` (string<date-time>)
- `datetimeEnd` (string<date-time>)
- `datetimeEndExplicit` (boolean) — Send false to clear datetimeEnd
- `repeatCount` (integer) — Resend on every update; omitting it resets it to 0
- `videos` (string[])
- `immediateStart` (boolean)
- `loop` (boolean)


```json
{
  "label": "Morning session 09:30",
  "datetime": "2026-12-03T04:30:00.000Z",
  "repeatCount": 1
}
```


### Example request

```bash
curl -X PUT 'https://octopus.livepush.io/streams/<stream_id>/config/scheduler/events/<event_id>' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "label": "Morning session 09:30",
    "datetime": "2026-12-03T04:30:00.000Z",
    "repeatCount": 1
  }'
```


### Responses


#### 200 — The updated event

- `id` (string)
- `label` (string)
- `immediateStart` (boolean)
- `datetime` (string<date-time>)
- `datetimeEnd` (string<date-time>)
- `datetimeEndExplicit` (boolean)
- `repeatCount` (integer)
- `videos` (string[])
- `loop` (boolean)
- `isActive` (boolean)
- `isArchived` (boolean)
- `runtime` (integer) — Runtime in seconds
- `immediateEnd` (boolean)
- `finishedAt` (integer)
- `preciseStart` (boolean)
- `revision` (integer)
- `stream` (string)
- `user` (string)
- `awaiting` (boolean)


```json
{
  "id": "ev_xxxxxxxxx",
  "label": "Morning session 09:30",
  "datetime": "2026-12-03T04:30:00.000Z",
  "datetimeEnd": "2026-12-03T04:59:00.000Z",
  "runtime": 3540000,
  "videos": [
    "Xk2fP9qLm"
  ],
  "repeatCount": 1,
  "awaiting": true,
  "isActive": false,
  "user": "usr_xxxxxxxxxxxx",
  "stream": "st_xxxxxxxxxxxxx"
}
```


#### 400 — Unknown event, or the event has already finished


#### 401 — Unauthorized

