---
search:
  tags:
    - Torrents
    - POST
seo:
  description: >-
    Act on several torrents. Reference for the POST /torrents/actions endpoint
    in the piecemeal API.
sidebar:
  label: Act on several torrents
  badge: POST
title: Act on several torrents
type: openapi-operation
---
`POST /torrents/actions`

**Request body** (`application/json`, required)

- `action` (string, required)
- `autoManaged` (boolean) — With setAutoManaged: on or off.
- `category` (string) — With setCategory; empty removes the category.
- `deleteData` (boolean) — With remove: also delete the files.
- `hashes` (string[] | null, required) — Infohashes, or \["all"\].
- `incompletePath` (string) — With setIncompletePath: the incomplete folder, empty for none. With move: also change the incomplete folder, in the same move.
- `savePath` (string) — With move: where to move the data; empty keeps the save path when incompletePath is given.
- `tags` (string[] | null) — With addTags and removeTags; removeTags without tags removes all.

Request body example:

```json
{
  "action": "start",
  "autoManaged": true,
  "category": "string",
  "deleteData": true,
  "hashes": [
    "string"
  ],
  "incompletePath": "string",
  "savePath": "string",
  "tags": [
    "string"
  ]
}
```

**Responses**

- `204` — No Content
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity
- `500` — Internal Server Error
