Skip to main content

Set the stream's archive override

PUT 

/program/api/v2/streams/:id/archiving-config

Decide whether this single stream archives, and at what quality, independently of the project's archiving configuration. Accepted both before the stream has started and while it is running.

Changes to a running stream propagate on the next ping cycle (seconds) — turning archive off stops that stream's archive without stopping the stream itself, and turning it on starts one mid-session.

The override is a property of the stream, not of a session: once set it applies to every subsequent session of that stream, including one created when a source disconnects and reconnects, until it is explicitly changed or cleared.

fileType and formats are optional and carry the same meaning as on the project's archiving configuration; whatever the override leaves unset still comes from the project. The archive destination is never overridable — output always goes to the project's configured S3 destination. Integrators needing a different bucket or path use a separate project.

Enabling archiving requires the project to have an archiving configuration; responds 422 project_missing_s3_config otherwise.

fileType is rejected (400) for projects whose archive rule is operator-managed in deployment config — there the container is not the service's to set, so accepting it would change nothing. The archive decision and formats remain settable for such projects.

Validates the stream belongs to the token's project. One override per stream.

Error codes (errorCode in the error body):

  • 400 managed_archive_file_type_fixed — recordings on Native Frame-managed storage are always HLS; a per-stream fileType other than hls is refused.
Generate JWT

Request​

Responses​

Existing override updated

Override created

Bad request - validation error (invalid fileType, malformed formats, or fileType set on an operator-managed project)

Forbidden - Stream belongs to different project

Stream not found

Project has no archiving (S3) configuration (project_missing_s3_config)

Internal Server Error