Skip to main content

UpsertWatchHistoryInput

Data to add or updated a watch history entry based on a video and device ID.

One of viewerId or deviceId is required.

input UpsertWatchHistoryInput {
deviceId: String
deviceType: DeviceType
eventId: String
stationId: UUID!
videoId: String!
viewerId: UUID
watchTime: Int!
}

Fields

UpsertWatchHistoryInput.deviceId ● String scalar references

UpsertWatchHistoryInput.deviceType ● DeviceType enum references

Device type is required if no deviceId is provided.

UpsertWatchHistoryInput.eventId ● String scalar references

Existing watch history event ID.

If provided, an update will be performed. If not provided, a create will be peformed.

UpsertWatchHistoryInput.stationId ● UUID! non-null scalar references

UpsertWatchHistoryInput.videoId ● String! non-null scalar references

UpsertWatchHistoryInput.viewerId ● UUID scalar references

Viewer ID is required if no deviceId is provided.

UpsertWatchHistoryInput.watchTime ● Int! non-null scalar references

Number of seconds from the start of the video the viewer has watched to.

Member Of

upsertWatchHistory mutation