---
title: "Upload a batch of segments"
method: POST
path: "/segments/batchUpload"
tags: ["Segment"]
---

# Upload a batch of segments

`POST /segments/batchUpload`

Upload a batch of segments with METADATA upload type

## Query parameters

- `tableName` string, required
- `tableType` string, required
- `enableParallelPushProtection` boolean
- `allowRefresh` boolean

## Response `200`

Successfully uploaded segment

## Other responses

- `400` — Bad Request
- `403` — Segment validation fails
- `409` — Segment already exists or another parallel push in progress
- `410` — Segment to refresh does not exist
- `412` — CRC check fails
- `500` — Internal error

---

[API](https://skmtc.net/startree/apis/pinot-controller-api.md) · [All operations](https://skmtc.net/startree/apis/pinot-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/startree/pinot-controller-api/versions/f1cc8a0ba2e0/schema)
