---
title: "community.comment-write-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/community.comment-write-request"
updated: null
---

# community.comment-write-request@1 · OpenVibe.Services

HTML: [community.comment-write-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/community.comment-write-request)

# CommunityCommentWriteRequest `community.comment-write-request@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: community
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/community/comment-write-request.v1.json`](/docs/contracts/community.comment-write-request.json)

community.comment-write-request@1: bodies of community.comment.write on OpenVibe.Community (people, anonymous people with a name where the thread allows it, and services acting as X-OV-Subject or as AI). POST /api/v1/comments/threads/resolve: { ref } — get or create the thread of an entity (browsers only for the allow-listed entity types; a label is taken only from a service). POST /api/v1/comments/threads/:id/comments: { message, parent\_id?, anon\_name?, attachments? } (message trimmed, at most 5000 characters; a reply to a reply joins the top-level comment). POST /api/v1/comments/:commentId/votes: { value: 1 | -1 | 0 } (people). GET /api/v1/comments/threads/:id and DELETE /api/v1/comments/:commentId take no body. Unknown fields are ignored.

## Fields

This schema has no named fields.

## Examples

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

 Valid: reply

~~~~
{
  "message": "That ending!",
  "parent_id": 810
}
~~~~

Valid: resolve

~~~~
{
  "ref": {
    "service": "live",
    "type": "vod",
    "id": "med_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  }
}
~~~~

Rejected: bad

~~~~
{
  "message": "   ",
  "value": 3,
  "ref": "live:vod:1"
}
~~~~

## Validate

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