---
title: "Create a batch fast"
method: POST
path: "/api/v1alpha/batches/create-fast"
tags: ["Batches API v1Alpha"]
---

# Create a batch fast

`POST /api/v1alpha/batches/create-fast`

Create a batch fast.

## Request body

- CreateBatchFastRequest
  - `billing_project` string, required — The billing project to charge for this batch
  - `token` string, required — Token for batch identification
  - `attributes` object, required — Key-value pairs of attributes for the batch
  - `callback` string — Optional callback URL to notify when batch completes
  - `cancel_after_n_failures` integer — Optional number of failures after which to cancel the batch
  - `job_specs` CreateJobRequest[], required — List of job specifications
    - `job_spec` object, required
      - `command` string[], required — Command to execute
      - `env` object — Environment variables
      - `port` integer — Port to expose
      - `resources` object
        - `cpu` string
        - `memory` string
        - `storage` string
      - `service_account` object
        - `namespace` string
        - `name` string
      - `timeout` integer — Job timeout in seconds
      - `attributes` object — Job attributes
      - `callback` string — Callback URL
  - `job_groups` JobGroupSpec[] — List of job groups
    - `attributes` object, required — Key-value pairs of attributes for the job group
    - `cancel_after_n_failures` integer — Optional number of failures after which to cancel the job group
    - `callback` string — Optional callback URL to notify when job group completes

## Response `200`

Successfully created the batch fast.

- object

---

[API](https://skmtc.net/hail-is/apis/hail-services.md) · [All operations](https://skmtc.net/hail-is/apis/hail-services/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hail-is/hail-services/revisions/3bd6e13adfa6/schema)
