---
title: "reviews.entity-link@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/reviews.entity-link"
updated: null
---

# reviews.entity-link@1 · OpenVibe.Services

HTML: [reviews.entity-link@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/reviews.entity-link)

# ReviewsEntityLink `reviews.entity-link@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: reviews
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/reviews/entity-link.v1.json`](/docs/contracts/reviews.entity-link.json)

reviews.entity-link@1: one typed link on OpenVibe.Reviews (the review\_entity\_links row): between two entities (related, edition\_of, successor\_of, part\_of; a merge is a merged\_into link and a split ends it) or to another service's entity (external\_ref, with ref holding the EntityRef as JSON text). Ending a link keeps it with who, when and why. Timestamps are epoch milliseconds.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `pattern ^lnk_[0-9A-HJKMNP-TV-Z]{26}$` |
| `from_entity` | string | yes |  | - `pattern ^ent_[0-9A-HJKMNP-TV-Z]{26}$` |
| `to_entity` | string \| null | yes |  |  |
| `type` | enum | yes |  | - `one of "merged_into", "related", "edition_of", "successor_of", "part_of", "external_ref"` |
| `ref` | string \| null | yes | external\_ref links: the common.entity-ref@1 as JSON text. |  |
| `note` | string \| null | yes |  |  |
| `created_by` | string | yes |  |  |
| `created_at` | integer | yes | Epoch milliseconds. |  |
| `ended_at` | integer \| null | yes | Epoch milliseconds, or null. |  |
| `ended_by` | string \| null | yes |  |  |
| `end_note` | string \| null | yes |  |  |

## Examples

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

 Valid: external

~~~~
{
  "id": "lnk_01JAC5M7N7P8Q9R0S1T2V3W4X5",
  "from_entity": "ent_01JAC1E2N3T4V5W6X7Y8Z9A0B1",
  "to_entity": null,
  "type": "external_ref",
  "ref": "{\"service\":\"wiki\",\"type\":\"page\",\"id\":\"pg_01JAC9P0Q1R2S3T4V5W6X7Y8Z9\"}",
  "note": null,
  "created_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "created_at": 1790241000000,
  "ended_at": null,
  "ended_by": null,
  "end_note": null
}
~~~~

Valid: merge

~~~~
{
  "id": "lnk_01JAC5M6N7P8Q9R0S1T2V3W4X5",
  "from_entity": "ent_01JAC1E3N3T4V5W6X7Y8Z9A0B1",
  "to_entity": "ent_01JAC1E2N3T4V5W6X7Y8Z9A0B1",
  "type": "merged_into",
  "ref": null,
  "note": "Same headphones, regional name",
  "created_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "created_at": 1790241000000,
  "ended_at": null,
  "ended_by": null,
  "end_note": null
}
~~~~

Rejected: bad-type

~~~~
{
  "id": "lnk_01JAC5M6N7P8Q9R0S1T2V3W4X5",
  "from_entity": "ent_01JAC1E3N3T4V5W6X7Y8Z9A0B1",
  "to_entity": "ent_01JAC1E2N3T4V5W6X7Y8Z9A0B1",
  "type": "sibling_of",
  "ref": null,
  "note": "Same headphones, regional name",
  "created_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "created_at": 1790241000000,
  "ended_at": null,
  "ended_by": null,
  "end_note": null
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('reviews.entity-link@1', value);   // { valid, errors: [{ path, message }] }
~~~~
