---
title: "Store an eval snippet"
method: PATCH
path: "/hub/eval-snippet"
tags: ["Eval snippets"]
---

# Store an eval snippet

`PATCH /hub/eval-snippet`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/hub/eval-snippet`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/docs/hub/eval-snippet/patch.ts> (a function with typed inputs; its response is checked against the schema)

Stores a named snippet on the account's config stream. The id has no dots or colons.

## Request body

- object

## Response `200`

Success

- object

## Other responses

- `400`: Request refused or invalid

## Changes

- **2026-11-12** `8730377687f9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/changes/hub/eval-snippet/patch.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/revisions/f80cd5f3ac1c?raw)
