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

# food.pantry-request@1 · OpenVibe.Services

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

# FoodPantryRequest `food.pantry-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/pantry-request.v1.json`](/docs/contracts/food.pantry-request.json)

food.pantry-request@1: PUT /api/v1/pantry on OpenVibe.Food replaces the pantry with exactly these food slugs.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `items` | array of string | yes |  | - `maxItems 200`<br>- `items: minLength 1`<br>- `items: maxLength 80` |

## Examples

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

 Valid: empty

~~~~
{
  "items": []
}
~~~~

Valid: two

~~~~
{
  "items": [
    "eggs-dozen",
    "rice-long-grain-5lb"
  ]
}
~~~~

Rejected: blank-slug

~~~~
{
  "items": [
    ""
  ]
}
~~~~

Rejected: not-array

~~~~
{
  "items": "eggs"
}
~~~~

## Validate

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