---
title: "Run batch of commands"
method: POST
path: "/job/batch"
---

# Run batch of commands

`POST /job/batch`

Run a batch of rclone rc commands concurrently.

## Query parameters

- `concurrency` integer
- `inputs` object[]
  - `_path` string, required — rc/path
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- JobBatchRequest
  - `concurrency` integer — Do this many commands concurrently. Defaults to --transfers if not set.
  - `inputs` object[] — List of inputs to the commands with an extra _path parameter.
    - `_path` string, required — rc/path
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Results of the batch job execution.

- object
  - `executeId` string, required — Identifier for this rclone process.
  - `jobid` integer, required — ID of the async job.

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

---

[API](https://skmtc.net/rclone/apis/rclone-rc-api.md) · [All operations](https://skmtc.net/rclone/apis/rclone-rc-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rclone/rclone-rc-api/versions/2849bf2803ce/schema)
