Create router rule
POST
Create a new content router rule with specified conditions and targets
header
X-API-Key<token>API key authentication using X-API-Key header
Full router rule payload used to create a rule
application/json- body
Full router rule payload used to create a rule
name*stringLength
1 <= lengthtarget_type*InstanceTypeArr instance kind, radarr or sonarr
Value in
"radarr""sonarr"target_instance_id*|nullcondition?|root_folder?|nullquality_profile?number||nulltags?array<string>order?integerLeft out, the rule is placed after every existing rule of its type
Range
1 <= value <= 100enabled?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 POST 'http://localhost:3003/v1/content-router/rules' \ -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" }}