Skip to content
piecemeal
Esc
↑↓navigate↵open⌘Jpreview

Create or replace an RSS download rule

Admins only.

PUT/rss/rules/{name}
Authorization
AuthorizationBearer token · headerrequired

An API key, pm_....

or
piecemeal_sessionAPI key · cookierequired
Path parameters
namestringrequired
max length 200
Request body
requiredapplication/json
addAddOptionsrequired
Show properties
categorystring
contentLayoutstring
Allowed:OriginalSubfolderNoSubfolder
extraobject

qBittorrent options piecemeal keeps but doesn't use.

forcedboolean
inactiveSeedingTimeLimitinteger<int64>required
ratioLimitnumber<double>required
savePathstring
seedGoalActionstring

What happens when the torrent reaches its seeding goals; absent or default follows the category, then the global setting.

Allowed:defaultstopremoveremoveWithData
seedGoalModestring

Whether any goal or all of them must be met; absent or default follows the category, then the global setting.

Allowed:defaultanyall
seedingTimeLimitinteger<int64>required
skipCheckingboolean
stoppedboolean

Add stopped; absent follows the addStopped setting.

tagsstring[] | null
affectedFeedsstring[] | nullrequired

URLs of the feeds the rule applies to.

enabledbooleanrequired
episodeFilterstringrequired

Season and episodes to take, such as 1x2;8-15;20-; (an open range continues into later seasons).

ignoreDaysinteger<int64>required
lastMatchstring<date-time>
mustContainstringrequired
mustNotContainstringrequired
previouslyMatchedEpisodesstring[] | nullrequired
priorityinteger<int64>required
smartFilterbooleanrequired

Take each episode once, recognised by the smart episode filters setting.

useRegexbooleanrequired

MustContain and MustNotContain are regular expressions instead of wildcard terms.

Responses
204

No Content

401

Unauthorized

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring<uri>

A URI reference to human-readable documentation for the error.

default: "about:blank"
403

Forbidden

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring<uri>

A URI reference to human-readable documentation for the error.

default: "about:blank"
422

Unprocessable Entity

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring<uri>

A URI reference to human-readable documentation for the error.

default: "about:blank"
500

Internal Server Error

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring<uri>

A URI reference to human-readable documentation for the error.

default: "about:blank"
Request
curl -X PUT 'https://piecemeal.example.com/api/piecemeal/v1/rss/rules/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/problem+json' \
  -H 'Content-Type: application/json' \
  -d '{
  "add": {
    "category": "string",
    "contentLayout": "Original",
    "extra": {
      "property1": null,
      "property2": null
    },
    "forced": true,
    "inactiveSeedingTimeLimit": 0,
    "ratioLimit": 0.1,
    "savePath": "string",
    "seedGoalAction": "default",
    "seedGoalMode": "default",
    "seedingTimeLimit": 0,
    "skipChecking": true,
    "stopped": true,
    "tags": [
      "string"
    ]
  },
  "affectedFeeds": [
    "string"
  ],
  "enabled": true,
  "episodeFilter": "string",
  "ignoreDays": 0,
  "lastMatch": "2019-08-24T14:15:22Z",
  "mustContain": "string",
  "mustNotContain": "string",
  "previouslyMatchedEpisodes": [
    "string"
  ],
  "priority": 0,
  "smartFilter": true,
  "useRegex": true
}'
Response
No Content

Was this page helpful?