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

# quest.app-quest-request@1 · OpenVibe.Services

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

# QuestAppQuestRequest `quest.app-quest-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: quest
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/quest/app-quest-request.v1.json`](/docs/contracts/quest.app-quest-request.json)

quest.app-quest-request@1: PUT /api/v1/app-quests/:slug on OpenVibe.Quest with an app token (capability quest.app\_quest.manage). A developer app defines a quest on its own project's events: each step counts events of type app.<project\_key>.<name> whose envelope actor is a person (the app publishing on\_behalf\_of them). The badge is the only reward: app quests never pay OpenCoins. Only production apps' events are counted (Events never hands sandbox events to first-party consumers).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `title` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `why` | string |  |  | - `maxLength 300` |
| `steps` | array of object | yes |  | - `minItems 1`<br>- `maxItems 5`<br>- `items: no other fields` |
| `steps[].event_type` | string | yes | One of the app's own event types (app.<project\_key>.<name>), as it publishes them at OpenVibe.Events. | - `pattern ^app\.p[0-9a-z]{26}\.[a-z0-9_]+(\.[a-z0-9_]+){0,3}$` |
| `steps[].count` | integer | yes |  | - `minimum 1`<br>- `maximum 1000` |
| `steps[].label` | string | yes |  | - `minLength 1`<br>- `maxLength 120` |
| `badge` | object | yes |  | - `no other fields` |
| `badge.name` | string | yes |  | - `minLength 1`<br>- `maxLength 40` |
| `url` | string |  | Where a person does the steps: the app's own page. | - `pattern ^https://`<br>- `format uri`<br>- `maxLength 500` |
| `status` | enum |  | retired: kept with its completions and badges, no longer counted or listed. Default active. | - `one of "active", "retired"` |

## Examples

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

 Valid: full

~~~~
{
  "title": "Collector",
  "why": "Find all five gems.",
  "steps": [
    {
      "event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.gem.found",
      "count": 5,
      "label": "Find a gem"
    },
    {
      "event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.level_completed",
      "count": 2,
      "label": "Finish two levels"
    }
  ],
  "badge": {
    "name": "Gem Collector"
  },
  "url": "https://example.com/play",
  "status": "active"
}
~~~~

Valid: minimal

~~~~
{
  "title": "Beat the first level",
  "steps": [
    {
      "event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.level_completed",
      "count": 1,
      "label": "Finish level one"
    }
  ],
  "badge": {
    "name": "Level One"
  }
}
~~~~

Rejected: coins

~~~~
{
  "title": "Paid",
  "steps": [
    {
      "event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.x",
      "count": 1,
      "label": "x"
    }
  ],
  "badge": {
    "name": "x"
  },
  "coins": 50
}
~~~~

Rejected: first-party-event

~~~~
{
  "title": "Go live",
  "steps": [
    {
      "event_type": "live.stream.started",
      "count": 1,
      "label": "Go live"
    }
  ],
  "badge": {
    "name": "Live"
  }
}
~~~~

Rejected: no-steps

~~~~
{
  "title": "Nothing",
  "steps": [],
  "badge": {
    "name": "x"
  }
}
~~~~

## Validate

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