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

# food.plan-create-request@1 · OpenVibe.Services

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

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

food.plan-create-request@1: POST /api/v1/plans on OpenVibe.Food. people 1-12, days 1-14, budget (US dollars for the whole plan) optional, title optional.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `people` | integer | yes |  | - `minimum 1`<br>- `maximum 12` |
| `days` | integer | yes |  | - `minimum 1`<br>- `maximum 14` |
| `budget` | number \| null |  |  | - `minimum 1`<br>- `maximum 5000` |
| `title` | string \| null |  |  | - `maxLength 120` |

## Examples

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

 Valid: full

~~~~
{
  "people": 4,
  "days": 7,
  "budget": 120,
  "title": "Family week"
}
~~~~

Valid: minimal

~~~~
{
  "people": 1,
  "days": 3
}
~~~~

Rejected: extra-field

~~~~
{
  "people": 2,
  "days": 2,
  "owner": "someone"
}
~~~~

Rejected: no-days

~~~~
{
  "people": 2
}
~~~~

Rejected: too-many-people

~~~~
{
  "people": 40,
  "days": 3
}
~~~~

## Validate

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