Pulsarr

Update router rule

PUT
/v1/content-router/rules/{id}

Replace an existing content router rule by its ID. The full rule payload is required - fields left out are cleared, not preserved.

Authorization

headerX-API-Key<token>

API key authentication using X-API-Key header

Path Parameters

id*number

Request Body

Full router rule payload used to replace a rule. An order outside 1 to 100 is accepted only when it is the value already stored on the rule.

application/json
  1. body

Full router rule payload used to replace a rule. An order outside 1 to 100 is accepted only when it is the value already stored on the rule.

name*string
Length1 <= length
target_type*InstanceType

Arr instance kind, radarr or sonarr

Value in"radarr""sonarr"
target_instance_id*|null
condition?|
root_folder?|null
quality_profile?number||null
tags?array<string>
order?integer
Range-9007199254740991 <= value <= 9007199254740991
enabled?boolean
search_on_add?boolean|null
season_monitoring?||

Sonarr rules only - season monitoring mode applied when adding series. Sending this for Radarr rules returns a 400 error.

series_type?|

Sonarr rules only - series type applied when adding series. Sending this for Radarr rules returns a 400 error.

monitor?|

Radarr rules only - monitor mode applied when adding movies. Sending this for Sonarr rules returns a 400 error.

always_require_approval?boolean
bypass_user_quotas?boolean
approval_reason?string
exclude_from_routing?boolean

Response Body

Default Response

application/json
  1. response

Response carrying a single router rule

success*boolean
message*string
rule*

A stored content router rule

Example Request
curl -X PUT 'http://localhost:3003/v1/content-router/rules/0' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "target_type": "radarr",  "target_instance_id": 1}'
Example Response
{  "success": true,  "message": "string",  "rule": {    "name": "string",    "target_type": "radarr",    "target_instance_id": 1,    "condition": {      "field": "string",      "operator": "equals",      "value": "string",      "negate": false    },    "root_folder": "string",    "quality_profile": 0,    "tags": [      "string"    ],    "order": 0,    "enabled": true,    "search_on_add": true,    "season_monitoring": "all",    "series_type": "standard",    "monitor": "movieOnly",    "always_require_approval": true,    "bypass_user_quotas": true,    "approval_reason": "string",    "exclude_from_routing": true,    "id": 0,    "created_at": "string",    "updated_at": "string"  }}