Skip to main content
Version: 5.7.0

SysProtectStreamUntil

Protects a playback stream from being purged (but not deleted) for the given number of days (from now). If the number of days given is less than the normal purge interval days (from createdAt), the longer protection date is applied.

ServiceOperation
playbackStreamSYS_PROTECT_STREAM_UNTIL

Method Parameters

ParameterDescription
playbackStreamIdIdentifies the stream to protect.
numDaysThe number of days the stream is to be protected (from now).

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"protectedUntil": "2025-10-15 19:46:20"
},
"status": 200
}