---
title: "Update pass batch"
method: POST
path: "/api/v1/passes/batch/update"
tags: ["Batches"]
---

# Update pass batch

`POST /api/v1/passes/batch/update`

Update passes in bulk via a CSV file.

## Response `202`

Accepted

- object
  - `data` SerializedPassUpdateBatch
    - `id` string — UUID of the batch
    - `type` 'passUpdate' — Type of batch
    - `attributes` object
      - `name` string — Friendly name of the batch, used for display purposes. Auto-generated if not provided
      - `status` 'validating' | 'scheduled' | 'failed' | 'updating' | 'successful' | 'completedWithErrors' | 'cancelled' — Status of the batch
      - `tag` string — Tag of the batch, used for grouping and filtering purposes
      - `passTemplateName` string — Name of the pass template
      - `passTemplateNameId` string — ID of the pass template
      - `completedAt` string — ISO8601 timestamp of when the batch was completed
      - `errorsCsvUrl` string — If present, batch failed validation, or had some errors during update. URL to a CSV file containing errors and error details of the batch
      - `totalCount` integer — If present, total number of passes to be updated in the batch
      - `progress` object — Shown when batch is validating or updating. Progress of the batch, can be polled for real-time updates.
        - `total` integer — Total number of passes to be created in the batch
        - `processed` integer — Number of passes processed in the batch
        - `pending` integer — Number of passes pending to be created in the batch
  - `links` BatchSelfLink
    - `self` string — Self link to the batch record

## Other responses

- `401` — Error: Unauthorized

---

[API](https://skmtc.dev/passentry/apis/passentry-api.md) · [All operations](https://skmtc.dev/passentry/apis/passentry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/passentry/passentry-api/revisions/3b24e067f9d9/schema)
