WikiPageWriteResult wiki.page-write-result@1

Generated at from openvibe-contracts v0.53.0 and openvibe-sdk v0.11.0.

Version
1.0.0
Owner
wiki
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/wiki/page-write-result.v1.json

wiki.page-write-result@1: answers of wiki.page.create on OpenVibe.Wiki. Creating a page → 201 { page, revision, citations }; a new revision → { page, revision, created, citations } (201 when a revision was made, 200 when nothing changed); PATCH and DELETE /api/v1/pages/:id → { page }; POST …/media → 201 { attachment }; POST …/media/verify → { results }; POST …/import → 201 { space, published, skipped, created } (each created page with its revision number).

Fields

This schema has no named fields.

Examples

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

Valid: revision
{
  "page": {
    "id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "space": "openvibe",
    "slug": "restreaming",
    "title": "Restreaming",
    "parent_id": null,
    "state": "published",
    "visibility": "public",
    "noindex": false,
    "published_revision": 3,
    "published_at": "2026-09-20T10:00:00.000Z",
    "revision_published_at": "2026-09-24T10:00:00.000Z",
    "updated_at": "2026-09-24T10:00:00.000Z",
    "url": "https://openvibe.wiki/openvibe/restreaming"
  },
  "revision": {
    "number": 3,
    "id": "rev_01JAB2C3D4E5F6G7H8J9K0MNPR",
    "kind": "edit",
    "parent_number": 2,
    "reverted_to": null,
    "title": "Restreaming",
    "summary": "Sending one stream to several platforms.",
    "infobox": [],
    "body": "Restreaming sends one encoder feed to several platforms.",
    "authorship": {
      "mode": "human"
    },
    "author": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "message": "clarify",
    "created_at": "2026-09-24T10:00:00.000Z"
  },
  "created": true,
  "citations": [
    {
      "id": 71,
      "revision": 3,
      "url": "https://docs.example.com/rtmp",
      "title": "RTMP spec",
      "source_item_id": null,
      "retrieved_at": "2026-09-24T09:00:00.000Z",
      "quote": null,
      "license_note": null,
      "carried_from": null,
      "attached_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
      "attached_at": "2026-09-24T10:00:00.000Z"
    }
  ]
}
Rejected: partial-attachment
{
  "attachment": {
    "alt": "x"
  }
}

Validate

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