---
title: "deals.flag-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/deals.flag-result"
updated: null
---

# deals.flag-result@1 · OpenVibe.Services

HTML: [deals.flag-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/deals.flag-result)

# DealsFlagResult `deals.flag-result@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: deals
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/deals/flag-result.v1.json`](/docs/contracts/deals.flag-result.json)

deals.flag-result@1: the answer of POST /api/v1/offers/:id/flags on OpenVibe.Deals: { flag: { id, kind, status }, created } (201 when created, 200 when an open flag was refreshed).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `flag` | object | yes |  |  |
| `flag.id` | string | yes |  |  |
| `flag.kind` | string | yes |  |  |
| `flag.status` | string | yes |  |  |
| `created` | boolean | yes |  |  |

## Examples

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

 Valid: created

~~~~
{
  "flag": {
    "id": "dfl_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "kind": "expired",
    "status": "open"
  },
  "created": true
}
~~~~

Rejected: no-flag

~~~~
{
  "created": true
}
~~~~

## Validate

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