Update an SRT Flow
Rename a stream flow, bring its endpoint online or offline, or change its egress destinations.
Overview
Updates a flow. Onlylabel, active, egress_primary_url and
egress_backup_url can be changed. To change a flow’s mode, upstream URLs,
failover setup, or region, delete it and create a new one.
Setting active controls whether the flow’s SRT endpoint is online. Inactive
flows keep their URLs and key, so you can take an endpoint offline between
events without reconfiguring your encoders.
The egress URLs follow the same rules as on create. Fields you
omit keep their value, and null removes a destination. Removing
egress_primary_url also requires removing egress_backup_url. Any egress
change briefly reconnects both destinations.
Errors
404- No flow with this ID belongs to your team.422- Validation error (e.g. alabelalready used by another of your team’s flows, an invalid egress URL, or a backup egress destination without a primary).
Related endpoints
Authorizations
The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
Path Parameters
Identifier of the flow.
Body
Partial update of a flow. Only label, active and the egress URLs can change; to change the upstream URLs, mode, failover or region, delete and recreate the flow.
New label (unique within your team).
Set true to bring the flow's relay online, false to take it offline.
Replace the primary egress destination (same rules as on create). null stops egress; it then requires egress_backup_url to be null too. Omit to keep the current value. A change briefly reconnects both egress destinations.
Replace the backup egress destination, or null to remove it. Omit to keep the current value.
Response
The updated flow.
Flow identifier.
caller: Camb.ai connects out to your SRT endpoint (primary_url) and re-serves it. listener: Camb.ai hosts an SRT endpoint that your encoder pushes to.
caller, listener Whether the flow's relay is currently online.
Region hosting the flow's SRT endpoint, as chosen at create. The flow's URLs carry this region's address.
Access key embedded in the flow's URLs.
SRT URL the flow serves. Use it as source_stream.url or as a target_streams[].url, or play it directly.
SRT URLs to push into (listener mode). Empty for caller flows.
The flow's SRT encryption passphrase, when one is set.
The primary egress destination as you set it, including any query parameters, or null.
The backup egress destination as you set it, or null.