---
title: "network.block.changed@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/network.block.changed"
updated: null
---

# network.block.changed@1 · OpenVibe.Services

HTML: [network.block.changed@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.block.changed)

# NetworkBlockChangedPayload `network.block.changed@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: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/network.block.changed.v1.json`](/docs/contracts/network.block.changed.json)

network.block.changed v1 (OpenVibe.Network; roadmap WS-E task 5). A person blocked or unblocked someone. Blocks are the network's: kept by Network, keyed by subjects, and honoured by every product — Chat (no DM, no mention notification from someone who blocked you), Community (no reply to their threads or comments) and notifications (none from a person the recipient blocked). Written to Network's outbox in the transaction that changes the block. Consumers keep a projection and apply the latest \`revision\` per (blocker, blocked); a service may also read the current list at GET /internal/blocks (network.blocks.read). Envelope: subject { type: user, id: <blocker> }, visibility internal, actor the blocker.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `blocker` | string | yes | Who blocked. | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `blocked` | string | yes | Who is blocked. | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `active` | boolean | yes | true: blocked; false: unblocked. |  |
| `revision` | integer | yes | Grows with every change of this pair; a consumer ignores an older one. | - `minimum 1`<br>- `maximum 9007199254740991` |
| `at` | string |  |  | - `format date-time` |

## Examples

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

 Valid: block

~~~~
{
  "blocker": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "blocked": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "active": true,
  "revision": 1,
  "at": "2026-09-25T22:00:00.000Z"
}
~~~~

Valid: unblock

~~~~
{
  "blocker": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "blocked": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "active": false,
  "revision": 2
}
~~~~

Rejected: not-a-subject

~~~~
{
  "blocker": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "blocked": "bob",
  "active": true,
  "revision": 1
}
~~~~

## Validate

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