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

# wiki.space-write-result@1 · OpenVibe.Services

HTML: [wiki.space-write-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/wiki.space-write-result)

# WikiSpaceWriteResult `wiki.space-write-result@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/wiki/space-write-result.v1.json`](/docs/contracts/wiki.space-write-result.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 }] }
~~~~
