---
title: "POST /ver2/BulkService.svc/batches"
method: POST
path: "/ver2/BulkService.svc/batches"
tags: ["Bulk"]
---

# POST /ver2/BulkService.svc/batches

`POST /ver2/BulkService.svc/batches`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/BulkService.svc/batches`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/BulkService.svc/batches/post.ts> (a function with typed inputs; its response is checked against the schema)

envianceSdk.bulk.queryBatches
```
[
  {
    "page": 0,
    "pageSize": 10,
    "withCount": true,
    "onlyCurrentUser": true
  },
  "onsuccess",
  "onerror"
]
```

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Request body

- BatchesQuery
  - `batchesQueryOptionInfo` EnvianceRestServicesVer2BulkBatchesQueryOptionInfo
    - `page` integer
    - `pageSize` integer
    - `onlyCurrentUser` boolean
    - `withCount` boolean

## Response `default`

not available

- EnvianceRestServicesVer2BulkBatchesResultInfo
  - `batchesCount` integer
  - `batches` EnvianceRestServicesVer2BulkBatchInfo[]
    - `id` string, guid
    - `systemName` string
    - `userId` string, guid
    - `userName` string
    - `fileName` string
    - `operation` string
    - `status` string
    - `statTotal` integer
    - `statExecuted` integer
    - `statWarnings` integer
    - `statFailed` integer
    - `created` string, date-time
    - `started` string, date-time
    - `finished` string, date-time
    - `duration` string

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
