---
title: "vip.perk-update-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/vip.perk-update-request"
updated: null
---

# vip.perk-update-request@1 · OpenVibe.Services

HTML: [vip.perk-update-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/vip.perk-update-request)

# VipPerkUpdateRequest `vip.perk-update-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: vip
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/vip/perk-update-request.v1.json`](/docs/contracts/vip.perk-update-request.json)

vip.perk-update-request@1: the body of vip.perk.update on OpenVibe.VIP. PATCH /api/v1/perks/:id: { name?, description?, kind?, status?, bindings? } renames, describes or retires a perk, or replaces its product bindings. Published plan versions keep the perk snapshot they were written with. Refusals are problem+json: 404 vip.perk\_not\_found; 422 vip.invalid\_input or vip.text\_too\_long; 403 capability.denied. Unknown fields are ignored.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `name` | string |  |  | - `minLength 1`<br>- `maxLength 80` |
| `description` | string \| null |  |  | - `maxLength 500` |
| `kind` | enum |  |  | - `one of "badge", "emote", "gated_content", "room", "role", "other"` |
| `status` | enum |  |  | - `one of "active", "retired"` |
| `bindings` | array of object |  | Replaces the perk's active bindings (a binding left out is removed). Each (product, binding) at most once. | - `maxItems 20` |
| `bindings[].product` | string | yes | A service id: live, chat, community, blog, … | - `pattern ^[a-z][a-z0-9-]{1,39}$` |
| `bindings[].binding` | string | yes | chat\_badge, room\_access, gated\_post, … | - `pattern ^[a-z][a-z0-9_.]{1,63}$` |
| `bindings[].config` | object \| null |  | Under 2 KB of JSON; default {}. |  |

## Examples

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

 Valid: rebind

~~~~
{
  "bindings": [
    {
      "product": "live",
      "binding": "chat_badge"
    },
    {
      "product": "chat",
      "binding": "chat_badge",
      "config": {
        "icon": "crown"
      }
    }
  ]
}
~~~~

Valid: retire

~~~~
{
  "status": "retired"
}
~~~~

Rejected: deleted

~~~~
{
  "status": "deleted"
}
~~~~

## Validate

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