---
title: "media.index_document.upserted@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/media.index_document.upserted"
updated: null
---

# media.index\_document.upserted@1 · OpenVibe.Services

HTML: [media.index\_document.upserted@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/media.index_document.upserted)

# MediaIndexDocumentUpsertedPayload `media.index_document.upserted@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: media
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/media.index_document.upserted.v1.json`](/docs/contracts/media.index_document.upserted.json)

media.index\_document.upserted v1 (OpenVibe.Media; roadmap WS-O task 10). The OpenVibe.Search document of a public, playable VOD or clip whose canonical page is on openvibe.media (openvibe.media/v/<id>, /c/<id>): readiness playable, visibility public, made by a person, and owned by an app other than Live (Live's own VODs and clips are live.index\_document, type vod or clip, on Live's pages). Sent whenever what Search should hold changed; a VOD or clip that is deleted, made private or stops being playable gets a tombstone. The revision grows with every change. Consumed by OpenVibe.Search ('\*.index\_document.\*'). Envelope: subject { type, id, revision: <document revision> }, visibility internal, actor service:media.

## Fields

This schema has no named fields.

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: vod

~~~~
{
  "owner": "media",
  "type": "vod",
  "id": "5628",
  "revision": 2,
  "deleted": false,
  "visibility": "public",
  "canonical_url": "https://openvibe.media/v/5628",
  "title": "Late night build stream",
  "summary": "A VOD from alex's channel.",
  "facets": {
    "channel": "alex",
    "duration_seconds": 3600
  },
  "authorship": "human",
  "publication_state": "published",
  "published_at": "2026-09-25T02:00:00.000Z",
  "indexability": {
    "decision": "index"
  }
}
~~~~

Rejected: wrong-owner

~~~~
{
  "owner": "live",
  "type": "vod",
  "id": "5628",
  "revision": 2,
  "deleted": false,
  "visibility": "public",
  "title": "x",
  "publication_state": "published",
  "indexability": {
    "decision": "index"
  }
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('media.index_document.upserted@1', value);   // { valid, errors: [{ path, message }] }
~~~~
