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.
Service | Operation |
---|---|
playbackStream | SYS_PROTECT_STREAM_UNTIL |
Method Parameters
Parameter | Description |
---|---|
playbackStreamId | Identifies the stream to protect. |
numDays | The number of days the stream is to be protected (from now). |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var playbackStreamId = "streamId";
var numDays = 365;
var playbackStreamProxy = bridge.getPlaybackStreamServiceProxy();
var postResult = playbackStreamProxy.sysProtectStreamUntil(playbackStreamId, numDays);
{
"service":"playbackStream",
"operation":"SYS_PROTECT_STREAM_UNTIL",
"data":{
"playbackStreamId":"streamId",
"numDays":365
}
}
JSON Response
{
"data": {
"protectedUntil": "2025-10-15 19:46:20"
},
"status": 200
}