Skip to main content
PUT
Put a scene on 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

X-Workspace-Id
string

Workspace this request operates in — the workspace id (wksp_…) or the organization id, from GET /workspaces. Required with an API key, which carries no workspace (400 WORKSPACE_REQUIRED without it). With an OAuth token it defaults to the workspace the token was issued for. Responds 403 WORKSPACE_FORBIDDEN when the caller is not a current member, rather than falling back to another workspace.

Path Parameters

id
string
required

Resource identifier.

Body

application/json
sceneId
string | null

Response

Successful response.

id
string
required
state
enum<string>
required
Available options:
draft,
invalid,
scheduled,
preparing,
activating,
active,
failing,
failed,
stopping,
stopped
createdAt
string<date-time>
destinations
object[]

Outputs in creation order.

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
runBackupStream
boolean

Also publish to YouTube's backup ingest, for redundancy. Doubles the streaming cost while live.

scene
object | null

The scene a stream plays (a live, designed stream) instead of its video playlist. Scenes are made and published with the Scenes API — its OpenAPI document is GET /v1/scenes/openapi.json. Publish the scene before attaching it with PUT /v1/streams/{id}/scene.

scheduleEndAt
string<date-time> | null
scheduleRepeat
enum<string>
Available options:
none,
daily,
weekly
scheduleRepeatDays
enum<string>[]

Weekdays a weekly window starts on, as the UTC weekday of scheduleStartAt. Empty = every 7 days from the anchor. Always empty unless scheduleRepeat is weekly.

Available options:
SUNDAY,
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY
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
streamDuration
integer | null

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