Skip to main content
PATCH
Update a stream

Authorizations

Authorization
string
header
required

OAuth 2.1 authorization-code flow with PKCE.

FlowAuthorization Code
Authorization URL
https://auth.streamloop.app/api/auth/oauth2/authorize
Token URL
https://auth.streamloop.app/api/auth/oauth2/token
Scopes1
streamloop:write
Create and control streams, destinations, and playlists

Headers

Idempotency-Key
string

Optional client-generated key. A repeated request with the same key replays the original response (within 24h) instead of re-executing — safe retries.

Path Parameters

id
string
required

Resource identifier.

Body

application/json

UpdateStreamInput is used for update Stream object. Input was generated by ent.

addPlaylistIDs
string[]
addPreparedPlaylistIDs
string[]
agentModeEnabled
boolean | null

Feature flag: run stream in agent mode (/agent) with replica-based orchestration.

audioUploadObjectID
string | null
clearAudioUploadObject
boolean | null
clearDestination
boolean | null
clearFramerate
boolean | null
clearName
boolean | null
clearPlaylists
boolean | null
clearPreparedPlaylists
boolean | null
clearQuality
boolean | null
clearScheduleEndAt
boolean | null
clearScheduleStartAt
boolean | null
clearStorageBackend
boolean | null
clearStreamBackend
boolean | null
clearStreamDuration
boolean | null
clearStreamKey
boolean | null
clearStreamState
boolean | null
clearVideoUploadObject
boolean | null
clearYoutubeSettings
boolean | null
destinationID
string | null
framerate
enum<string> | null
Available options:
f_24,
f_25,
f_30,
f_60
name
string | null
quality
enum<string> | null
Available options:
q_720p,
q_1080p,
q_1440p,
q_2160p
removePlaylistIDs
string[]
removePreparedPlaylistIDs
string[]
runBackupStream
boolean | null

Stream preference: enable backup destination streaming in agent mode.

scheduleEndAt
string<date-time> | null
scheduleStartAt
string<date-time> | null
storageBackend
enum<string> | null

Storage tier for this stream's media. 'standard' suits typical playlists and is included. 'large' is for big playlists: storage is provisioned to fit your content and grows as you add to it, billed per GiB-month. Takes effect at the next stream start.

Available options:
standard,
large
streamBackend
enum<string> | null

RTMP publisher backend. Editing is restricted.

Available options:
ffmpeg,
manifest
streamDestination
enum<string> | null
Available options:
youtube
streamDuration
integer | null

Stream duration in seconds. 0 = never expires. Copied from user default on creation.

streamKey
string | null

DEPRECATED: use destination_id. Kept for backward-compat during destination migration.

streamStateID
string | null
videoUploadObjectID
string | null
youtubeSettingsID
string | null

Response

Successful response.

createdAt
string<date-time>
required
id
string
required
framerate
enum<string> | null
Available options:
f_24,
f_25,
f_30,
f_60
name
string | null
quality
enum<string> | null
Available options:
q_720p,
q_1080p,
q_1440p,
q_2160p
state
enum<string> | null
Available options:
draft,
invalid,
scheduled,
preparing,
activating,
active,
failing,
failed,
stopping,
stopped