---
search:
  tags:
    - System
    - PATCH
seo:
  description: >-
    Admins only. Reference for the PATCH /settings endpoint in the piecemeal
    API.
sidebar:
  label: Change settings
  badge: PATCH
title: Change settings
type: openapi-operation
---
Admins only.

`PATCH /settings`

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

- `addStopped` (boolean) — Add new torrents stopped.
- `altDownloadLimit` (integer<int64>) — Alternative download limit, used while altSpeedEnabled is on.
- `altSpeedEnabled` (boolean) — Use the alternative limits.
- `altSpeedSchedule` (boolean) — Turn the alternative limits on and off on a schedule.
- `altSpeedScheduleDays` (string) — The days the schedule applies, by the day it starts.
- `altSpeedScheduleFrom` (string) — When the alternative limits start, HH:MM local time.
- `altSpeedScheduleTo` (string) — When they end, HH:MM local time; earlier than the start means the next day.
- `altUploadLimit` (integer<int64>) — Alternative upload limit, used while altSpeedEnabled is on.
- `autoManagement` (boolean) — New torrents use automatic management, unless the request says otherwise: their save path and incomplete folder follow their category.
- `bannedIPs` (string) — Peers to refuse: IP addresses or CIDR ranges, one per line.
- `defaultSavePath` (string) — Where torrents are saved when neither the request nor its category names a path.
- `dht` (boolean) — Use the DHT to find peers.
- `dontCountSlowTorrents` (boolean) — Slow torrents don't count toward the limits.
- `downloadLimit` (integer<int64>) — Global download limit in bytes per second, 0 for unlimited.
- `encryption` (string) — Peer connection encryption: prefer, require or disable.
- `inactiveSeedingTimeLimit` (integer<int64>) — Stop seeding after this many minutes without upload, -1 for unlimited.
- `incompletePath` (string) — Where incomplete torrents are kept while incompletePathEnabled is on.
- `incompletePathEnabled` (boolean) — Keep incomplete torrents in incompletePath; each moves to its save path once complete. A category or a torrent can choose otherwise.
- `ipFilterEnabled` (boolean) — Refuse peers in the ranges of the IP filter file.
- `ipFilterPath` (string) — An IP filter file: eMule .dat, PeerGuardian .p2p, or one IP address or CIDR range per line.
- `maxActiveCheckingTorrents` (integer<int64>) — Torrents whose data is checked at once; the rest wait, queued for checking.
- `maxActiveDownloads` (integer<int64>) — Torrents downloading at once, -1 for unlimited.
- `maxActiveTorrents` (integer<int64>) — Torrents running at once, -1 for unlimited.
- `maxActiveUploads` (integer<int64>) — Torrents seeding at once, -1 for unlimited.
- `maxConnectionsPerTorrent` (integer<int64>) — Established peer connections per torrent.
- `maxHalfOpenConnections` (integer<int64>) — Outgoing connection attempts in progress, across all torrents.
- `peerPort` (integer<int64>) — Port to accept peers on. NAT-PMP, when configured, overrides it. 0 picks a random port.
- `pex` (boolean) — Exchange peers with other peers.
- `proxyBitTorrent` (boolean) — Announce to trackers and download from web seeds through the proxy. UDP trackers need a SOCKS5 proxy that relays UDP, and aren't used otherwise.
- `proxyHost` (string) — The proxy server's hostname or IP address.
- `proxyHostnameLookup` (boolean) — Let the proxy look up the hostnames of trackers and web seeds, so they aren't looked up locally. UDP trackers are always looked up locally.
- `proxyPassword` (string) — The password for the proxy. Write-only: reads return an empty string, and an empty value leaves the password as it is. Clearing proxyUsername clears it.
- `proxyPeerConnections` (boolean) — With proxyBitTorrent, connect to peers through the proxy too. The DHT, uTP and WebRTC peers can't go through it, so they are off meanwhile.
- `proxyPort` (integer<int64>) — The proxy server's port.
- `proxyRSS` (boolean) — Fetch RSS feeds through the proxy.
- `proxyTorrentFiles` (boolean) — Download torrent files from URLs through the proxy, whether added by URL or by an RSS rule. Addresses on PIECEMEAL\_FETCH\_ALLOWED\_NETWORKS are reached directly.
- `proxyType` (string) — The proxy server's type: none, socks5, or http (an HTTP proxy that allows CONNECT to any port).
- `proxyUsername` (string) — The username for the proxy, empty for none.
- `queueingEnabled` (boolean) — Run only a limited number of torrents at a time; the rest wait in the queue.
- `ratioLimit` (number<double>) — Stop seeding at this upload ratio, -1 for unlimited.
- `relocateOnCategoryChange` (boolean) — When an automatically managed torrent's category changes, move its data to the new category's paths. Off switches the torrent to manual management instead.
- `relocateOnCategoryPathChange` (boolean) — When a category's save path or incomplete folder changes, move the data of its automatically managed torrents. Off switches them to manual management instead.
- `relocateOnDefaultPathChange` (boolean) — When the default save path or the incomplete folder changes, move the data of automatically managed torrents that use it. Off switches them to manual management instead.
- `rssAutoDownload` (boolean) — Add torrents from new articles that RSS rules match.
- `rssDownloadRepacks` (boolean) — With the smart episode filter, also take a REPACK or PROPER of an episode already downloaded.
- `rssEnabled` (boolean) — Fetch RSS feeds on their schedule.
- `rssFetchDelay` (integer<int64>) — Seconds between requests to the same host.
- `rssMaxArticles` (integer<int64>) — Articles kept per feed; older ones are dropped.
- `rssRefreshInterval` (integer<int64>) — Minutes between fetches of a feed without its own interval.
- `rssSmartEpisodeFilters` (string) — Regular expressions, one per line, that find the episode in a title for the smart episode filter: two groups for season and episode, or one for a date.
- `seedGoalAction` (string) — What to do once a torrent reaches its seeding goals.
- `seedGoalMode` (string) — Whether a torrent reaches its seeding goals when any one is met, or only when all that are set are.
- `seedingTimeLimit` (integer<int64>) — Stop seeding after this many minutes, -1 for unlimited.
- `slowDownloadRate` (integer<int64>) — A torrent below this download rate, in bytes per second, is slow.
- `slowTorrentTime` (integer<int64>) — Seconds a torrent must stay below the slow rates to count as slow.
- `slowUploadRate` (integer<int64>) — A torrent below this upload rate, in bytes per second, is slow.
- `uploadLimit` (integer<int64>) — Global upload limit in bytes per second, 0 for unlimited.
- `utp` (boolean) — Use uTP as well as TCP for peer connections.

Request body example:

```json
{
  "addStopped": true,
  "altDownloadLimit": 0,
  "altSpeedEnabled": true,
  "altSpeedSchedule": true,
  "altSpeedScheduleDays": "everyDay",
  "altSpeedScheduleFrom": "string",
  "altSpeedScheduleTo": "string",
  "altUploadLimit": 0,
  "autoManagement": true,
  "bannedIPs": "string",
  "defaultSavePath": "string",
  "dht": true,
  "dontCountSlowTorrents": true,
  "downloadLimit": 0,
  "encryption": "prefer",
  "inactiveSeedingTimeLimit": 0,
  "incompletePath": "string",
  "incompletePathEnabled": true,
  "ipFilterEnabled": true,
  "ipFilterPath": "string",
  "maxActiveCheckingTorrents": 1,
  "maxActiveDownloads": -1,
  "maxActiveTorrents": -1,
  "maxActiveUploads": -1,
  "maxConnectionsPerTorrent": 1,
  "maxHalfOpenConnections": 1,
  "peerPort": 0,
  "pex": true,
  "proxyBitTorrent": true,
  "proxyHost": "string",
  "proxyHostnameLookup": true,
  "proxyPassword": "string",
  "proxyPeerConnections": true,
  "proxyPort": 0,
  "proxyRSS": true,
  "proxyTorrentFiles": true,
  "proxyType": "none",
  "proxyUsername": "string",
  "queueingEnabled": true,
  "ratioLimit": 0.1,
  "relocateOnCategoryChange": true,
  "relocateOnCategoryPathChange": true,
  "relocateOnDefaultPathChange": true,
  "rssAutoDownload": true,
  "rssDownloadRepacks": true,
  "rssEnabled": true,
  "rssFetchDelay": 0,
  "rssMaxArticles": 0,
  "rssRefreshInterval": 1,
  "rssSmartEpisodeFilters": "string",
  "seedGoalAction": "stop",
  "seedGoalMode": "any",
  "seedingTimeLimit": 0,
  "slowDownloadRate": 0,
  "slowTorrentTime": 0,
  "slowUploadRate": 0,
  "uploadLimit": 0,
  "utp": true
}
```

**Responses**

- `200` — OK
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity
- `500` — Internal Server Error

Response example, 200:

```json
{
  "locked": {
    "property1": "string",
    "property2": "string"
  },
  "proxyPasswordSet": true,
  "settings": {
    "addStopped": true,
    "altDownloadLimit": 0,
    "altSpeedEnabled": true,
    "altSpeedSchedule": true,
    "altSpeedScheduleDays": "everyDay",
    "altSpeedScheduleFrom": "string",
    "altSpeedScheduleTo": "string",
    "altUploadLimit": 0,
    "autoManagement": true,
    "bannedIPs": "string",
    "defaultSavePath": "string",
    "dht": true,
    "dontCountSlowTorrents": true,
    "downloadLimit": 0,
    "encryption": "prefer",
    "inactiveSeedingTimeLimit": 0,
    "incompletePath": "string",
    "incompletePathEnabled": true,
    "ipFilterEnabled": true,
    "ipFilterPath": "string",
    "maxActiveCheckingTorrents": 1,
    "maxActiveDownloads": -1,
    "maxActiveTorrents": -1,
    "maxActiveUploads": -1,
    "maxConnectionsPerTorrent": 1,
    "maxHalfOpenConnections": 1,
    "peerPort": 0,
    "pex": true,
    "proxyBitTorrent": true,
    "proxyHost": "string",
    "proxyHostnameLookup": true,
    "proxyPeerConnections": true,
    "proxyPort": 0,
    "proxyRSS": true,
    "proxyTorrentFiles": true,
    "proxyType": "none",
    "proxyUsername": "string",
    "queueingEnabled": true,
    "ratioLimit": 0.1,
    "relocateOnCategoryChange": true,
    "relocateOnCategoryPathChange": true,
    "relocateOnDefaultPathChange": true,
    "rssAutoDownload": true,
    "rssDownloadRepacks": true,
    "rssEnabled": true,
    "rssFetchDelay": 0,
    "rssMaxArticles": 0,
    "rssRefreshInterval": 1,
    "rssSmartEpisodeFilters": "string",
    "seedGoalAction": "stop",
    "seedGoalMode": "any",
    "seedingTimeLimit": 0,
    "slowDownloadRate": 0,
    "slowTorrentTime": 0,
    "slowUploadRate": 0,
    "uploadLimit": 0,
    "utp": true
  }
}
```
