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

# network.mod-grant-change@1 · OpenVibe.Services

HTML: [network.mod-grant-change@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.mod-grant-change)

# NetworkModGrantChange `network.mod-grant-change@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
- Decision: [ADR-013](/docs/adr/ADR-013)
- Schema: [`https://openvibe.network/contracts/network/mod-grant-change.v1.json`](/docs/contracts/network.mod-grant-change.json)

network.mod-grant-change@1 (OpenVibe.Network; roadmap WS-M task 3, ADR-013): approve or revoke one requested capability of a mod principal, POST /internal/mods/{mod\_id}/grants (the owning runtime, mods.grant.manage) or POST /api/admin/mods/{mod\_id}/grants (staff.games.manage, with a reason).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `capability` | string | yes |  | - `pattern ^[a-z][a-z0-9_]*(\.[a-z0-9_]+){2,}$` |
| `action` | enum | yes |  | - `one of "approve", "revoke"` |
| `actor` | string |  |  | - `maxLength 80` |
| `reason` | string |  |  | - `maxLength 500` |

## Examples

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

 Valid: approve

~~~~
{
  "capability": "games.world.announce",
  "action": "approve"
}
~~~~

Rejected: grant-all

~~~~
{
  "capability": "*",
  "action": "approve"
}
~~~~

## Validate

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