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!
videoMembershipTier: MembershipTier
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 performed.

UpsertWatchHistoryInput.stationId ● UUID! non-null scalar references​

UpsertWatchHistoryInput.videoId ● String! non-null scalar references​

UpsertWatchHistoryInput.videoMembershipTier ● MembershipTier enum references​

Membership tier of the video being watched.

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