WikiSpaceWriteResult wiki.space-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/space-write-result.v1.json

wiki.space-write-result@1: answers of wiki.space.create on OpenVibe.Wiki: POST /api/v1/spaces → 201 { space }; PATCH → { space }; PUT …/roles/:subject → { roles } (every role in the space after the change: subject, role, granted_by, granted_at).

Fields

This schema has no named fields.

Examples

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

Valid: roles
{
  "roles": [
    {
      "subject": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
      "role": "owner",
      "granted_by": null,
      "granted_at": "2026-09-01T10:00:00.000Z"
    }
  ]
}
Valid: space
{
  "space": {
    "id": "spc_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "slug": "openvibe",
    "name": "OpenVibe",
    "description": "How the network works.",
    "kind": "official",
    "visibility": "public",
    "created_at": "2026-09-01T10:00:00.000Z",
    "updated_at": "2026-09-25T18:00:00.000Z"
  }
}
Rejected: bad-role
{
  "roles": [
    {
      "subject": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
      "role": "admin"
    }
  ]
}

Validate

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