---
title: "Many specs in one call (full control)"
method: POST
path: "/batch"
tags: ["schema"]
---

# Many specs in one call (full control)

`POST /batch`

## Request

- Base URL: `https://sampuli.site/api/v1`
- URL: `https://sampuli.site/api/v1/batch`
- Auth: none declared

## Request body

- object
  - `requests` BatchRequest[], required
    - `spec` string, required
    - `n` integer
    - `fields` union
      - string[]
      - 'all'
    - `seed` string
    - `key` string

## Response `200`

Results in request order.

- BatchResult
  - `count` integer
  - `results` object[]
    - `spec` string
    - `key` string
    - `count` integer
    - `data` unknown
    - `error` string

## Other responses

- `400`: Error

---

[API](https://skmtc.dev/sampuli/apis/sampuli-api.md) · [All operations](https://skmtc.dev/sampuli/apis/sampuli-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sampuli/apis/sampuli-api/revisions/55c96e65fa3c?raw)
