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

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

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

# WikiIndexDocumentUpsertedPayload `wiki.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: wiki
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/wiki.index_document.upserted.v1.json`](/docs/contracts/wiki.index_document.upserted.json)

wiki.index\_document.upserted v1 (OpenVibe.Wiki server/wiki/service.js sync, via openvibe-publishing/index-hooks indexEvent). The OpenVibe.Search document of a published, public, listable page, sent whenever what Search should hold changed (the revision grows with every change). Consumed by OpenVibe.Search ('\*.index\_document.\*'). Envelope: subject { type: page, id, revision: <document revision> }, visibility internal, priority important, actor service:wiki.

## Fields

This schema has no named fields.

## Examples

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

 Valid: page

~~~~
{
  "owner": "wiki",
  "type": "page",
  "id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "revision": 3,
  "deleted": false,
  "visibility": "public",
  "canonical_url": "https://openvibe.wiki/w/food/ramen",
  "title": "Ramen",
  "summary": "Noodle soup.",
  "body": "Ramen is a noodle soup.",
  "facets": {
    "space": "food",
    "space_kind": "user"
  },
  "authorship": "human",
  "provenance": [
    {
      "service": "sources",
      "type": "item",
      "id": "itm_01JAB2C3D4E5F6G7H8J9K0MNPX",
      "retrieved_at": "2026-09-22T12:00:00.000Z"
    }
  ],
  "publication_state": "published",
  "published_at": "2026-09-22T12:00:00.000Z",
  "updated_at": "2026-09-23T08:00:00.000Z",
  "indexability": {
    "decision": "index",
    "reasons": []
  }
}
~~~~

Rejected: other-owner

~~~~
{
  "owner": "blog",
  "type": "page",
  "id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "revision": 3,
  "deleted": false,
  "visibility": "public",
  "canonical_url": "https://openvibe.wiki/w/food/ramen",
  "title": "Ramen",
  "publication_state": "published",
  "indexability": {
    "decision": "index",
    "reasons": []
  }
}
~~~~

Rejected: tombstone-as-upsert

~~~~
{
  "owner": "wiki",
  "type": "page",
  "id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "revision": 4,
  "deleted": true
}
~~~~

## Validate

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