Update router rule
Replace an existing content router rule by its ID. The full rule payload is required - fields left out are cleared, not preserved.
X-API-Key<token>API key authentication using X-API-Key header
id*numberFull 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- 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*string1 <= lengthtarget_type*InstanceTypeArr instance kind, radarr or sonarr
"radarr""sonarr"target_instance_id*|nullcondition?|root_folder?|nullquality_profile?number||nulltags?array<string>order?integer-9007199254740991 <= value <= 9007199254740991enabled?booleansearch_on_add?boolean|nullseason_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?booleanbypass_user_quotas?booleanapproval_reason?stringexclude_from_routing?booleanDefault Response
application/json- response
Response carrying a single router rule
success*booleanmessage*stringrule*A stored content router rule
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}'{ "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" }}