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

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

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

# SpacePostWriteResult `space.post-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: space
- Visibility: first-party
- Status: retired
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/space/post-write-result.v1.json`](/docs/contracts/space.post-write-result.json)

Deprecated since 0.118.0; use community.post-write-result@1. Removed after 1.0.0. the forum returned to OpenVibe.Community (2026-10-08)

space.post-write-result@1: answers of the forum writes on OpenVibe.Space (space.post.write). POST /api/v1/spaces/:space/threads → 201 { thread, post } (the thread and its opening post); POST …/threads/:slug/posts → 201 { post, page, url } (the reply, the page it lands on and its address with #post-<id>); PUT /api/v1/posts/:id → { post }; POST …/threads/:slug/votes → { thread\_id, score, upvotes, downvotes, my\_vote }; DELETE /api/v1/posts/:id → { ok, id } (deleting the opening post deletes the thread: { ok, id, deleted: thread }); DELETE /api/v1/spaces/:space/threads/:slug → { ok, id, deleted: thread }. Refusals are problem+json.

## Fields

This schema has no named fields.

## Examples

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

 Valid: new-thread

~~~~
{
  "thread": {
    "id": 311,
    "space": "streaming",
    "slug": "restreaming-to-three-platforms",
    "title": "Restreaming to three platforms at once",
    "url": "/s/streaming/t/restreaming-to-three-platforms",
    "kind": "discussion",
    "status": null,
    "category": {
      "slug": "help",
      "name": "Help",
      "description": null,
      "position": 1
    },
    "members_only": null,
    "author": {
      "subject": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
      "username": "alice",
      "display_name": "Alice",
      "avatar_url": null,
      "profile_color": "#3b82f6"
    },
    "origin": "user",
    "pinned": false,
    "locked": false,
    "score": 0,
    "reply_count": 0,
    "views": 0,
    "pages": 1,
    "last_post": null,
    "crosspost_of": null,
    "last_activity_at": "2026-09-25T18:00:00.000Z",
    "created_at": "2026-09-25T18:00:00.000Z",
    "my_vote": 0
  },
  "post": {
    "attachments": [],
    "pastes": [
      {
        "slug": "k3JfQ2",
        "title": "ffmpeg restream flags",
        "language": "text",
        "type": "paste",
        "url": "/p/k3JfQ2",
        "screenshot_url": null,
        "lines": 1,
        "excerpt": "ffmpeg -re -i in.flv -c copy -f flv rtmp://example/live"
      }
    ],
    "id": 5120,
    "thread_id": 311,
    "is_opening": true,
    "origin": "user",
    "author": {
      "subject": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
      "username": "alice",
      "display_name": "Alice",
      "avatar_url": null,
      "profile_color": "#3b82f6"
    },
    "body_markdown": "What bitrates do you use?",
    "body_html": "<p>What bitrates do you use?</p>",
    "revision": 1,
    "deleted": false,
    "created_at": "2026-09-25T18:00:00.000Z",
    "updated_at": "2026-09-25T18:00:00.000Z",
    "can_edit": true
  }
}
~~~~

Valid: reply

~~~~
{
  "post": {
    "attachments": [],
    "pastes": [
      {
        "slug": "k3JfQ2",
        "title": "ffmpeg restream flags",
        "language": "text",
        "type": "paste",
        "url": "/p/k3JfQ2",
        "screenshot_url": null,
        "lines": 1,
        "excerpt": "ffmpeg -re -i in.flv -c copy -f flv rtmp://example/live"
      }
    ],
    "id": 5120,
    "thread_id": 311,
    "is_opening": false,
    "origin": "user",
    "author": {
      "subject": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
      "username": "alice",
      "display_name": "Alice",
      "avatar_url": null,
      "profile_color": "#3b82f6"
    },
    "body_markdown": "What bitrates do you use?",
    "body_html": "<p>What bitrates do you use?</p>",
    "revision": 1,
    "deleted": false,
    "created_at": "2026-09-25T18:00:00.000Z",
    "updated_at": "2026-09-25T18:00:00.000Z",
    "can_edit": true
  },
  "page": 1,
  "url": "/s/streaming/t/restreaming-to-three-platforms#post-5121"
}
~~~~

Valid: thread-deleted

~~~~
{
  "ok": true,
  "id": 311,
  "deleted": "thread"
}
~~~~

Valid: vote

~~~~
{
  "thread_id": 311,
  "score": 3,
  "upvotes": 4,
  "downvotes": 1,
  "my_vote": 1
}
~~~~

Rejected: bad-deleted

~~~~
{
  "ok": true,
  "id": 311,
  "deleted": "post"
}
~~~~

## Validate

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