Skip to content

retainVideo

Mutation

Requests that a video’s footage be kept past the standard retention window.

The copy into retained storage runs after the mutation returns; track it on Video.retained. Fails for a video that is still recording, and for an edge video (use requestVideoSync).

Response

Returns Video

Arguments

NameTypeDescription
idID!

The unique identifier of the video to retain.

Example

mutation retainVideo(
$id: ID!
) {
retainVideo(
id: $id
) {
id
dataSource {
id
name
type
device {
id
uuid
externalId
name
enabled
address
frameRate
transcoderId
lastHeartbeat
}
zones {
id
name
active
createdAt
updatedAt
}
labels
}
startTime
endTime
cloudAvailable
sync {
state
segmentsDone
segmentsTotal
attempts
lastEventAt
error
}
retained
url
thumbnailUrl
displayName
resolutionHeight
resolutionWidth
frameRate
totalSizeBytes
segmentCount
createdBy {
id
emailAddress
}
}
}