---
title: "play.title-definition@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/play.title-definition"
updated: null
---

# play.title-definition@1 · OpenVibe.Services

HTML: [play.title-definition@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/play.title-definition)

# PlayTitleDefinition `play.title-definition@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: play
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [Games ADR-0007](/docs/adr/Games%20ADR-0007)
- Schema: [`https://openvibe.network/contracts/play/title-definition.v1.json`](/docs/contracts/play.title-definition.json)

A title as its own principal registers it (play.title.manage, PUT /api/v1/titles/:title). Achievements and boards are listed in display order; one left out is retired, never deleted. A board's kind never changes.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `url` | string \| null |  | where the game is played | - `pattern ^https://`<br>- `maxLength 300` |
| `summary` | string |  |  | - `maxLength 300` |
| `achievements` | array of object |  |  | - `maxItems 200`<br>- `items: no other fields` |
| `achievements[].id` | string | yes |  | - `pattern ^[a-z0-9][a-z0-9_-]{0,63}$` |
| `achievements[].name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `achievements[].description` | string |  |  | - `maxLength 300` |
| `achievements[].hidden` | boolean |  | a secret achievement: its name and text show only to whoever unlocked it |  |
| `boards` | array of object |  |  | - `maxItems 200`<br>- `items: no other fields` |
| `boards[].id` | string | yes |  | - `pattern ^[a-z0-9][a-z0-9_-]{0,63}$` |
| `boards[].name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `boards[].kind` | enum | yes | best: each player's best score; sum: the total of their scores | - `one of "best", "sum"` |

## Examples

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

 Valid: basic

~~~~
{
  "name": "Salvage Rush",
  "url": "https://openvibe.games/play?game=salvage-rush",
  "achievements": [
    {
      "id": "first-haul",
      "name": "First Haul",
      "description": "Finish a round with scrap."
    }
  ],
  "boards": [
    {
      "id": "best",
      "name": "Best round",
      "kind": "best"
    }
  ]
}
~~~~

Rejected: basic

~~~~
{
  "name": "X",
  "boards": [
    {
      "id": "best",
      "name": "Best",
      "kind": "median"
    }
  ]
}
~~~~

## Validate

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