Simulate configuration change impact for releases
const url = 'https://example.com/api/v1/simulate/impact';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"databaseId":1,"arrType":"radarr","releases":[{"id":"example","title":"example","type":"movie"}],"profileNames":["example"],"proposedChanges":[{"kind":"set_cf_score","profileName":"example","customFormatName":"example","score":1}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/simulate/impact \ --header 'Content-Type: application/json' \ --data '{ "databaseId": 1, "arrType": "radarr", "releases": [ { "id": "example", "title": "example", "type": "movie" } ], "profileNames": [ "example" ], "proposedChanges": [ { "kind": "set_cf_score", "profileName": "example", "customFormatName": "example", "score": 1 } ] }'Applies proposed custom-format score and quality-profile threshold changes to an isolated ephemeral sandbox cache and returns release-level impact, config A/B diff, and cascade warnings. Proposed changes never touch pcd_ops or the registered cache.
Request Bodyrequired
Section titled “Request Bodyrequired”object
PCD database instance ID
object
Client-generated correlation ID
Release title to parse and evaluate
PCD or TRaSH selectors (‘name’ | ‘pcd:name’ | ‘trash:name’)
object
Raw PCD quality-profile name (pcd:-stripped)
Finite integer custom-format score
object
Responses
Section titled “Responses”Impact simulation results
object
object
Raw PCD quality-profile name (pcd:-stripped)
Finite integer custom-format score
object
object
object
Raw PCD quality-profile name (pcd:-stripped)
Finite integer custom-format score
object
object
object
Detected source (e.g., bluray, webdl, webrip)
Detected resolution (e.g., 1080p, 2160p)
Quality modifier (e.g., remux, none)
Detected languages
Detected release group
Detected year
Detected edition (e.g., Director’s Cut)
Release type for series (single_episode, season_pack, etc.)
object
object
object
object
Dot-notated field path
object
Distinct related-entity counts keyed by node kind, plus total
object
object
Example
{ "cascadeBasis": "current", "appliedChanges": [ { "kind": "set_cf_score" } ], "skippedChanges": [ { "change": { "kind": "set_cf_score" } } ], "releaseImpacts": [ { "profiles": [ { "currentState": "below", "proposedState": "below" } ] } ], "configDiff": [ { "entityType": "quality_profile", "arrType": "radarr", "changes": [ { "type": "added" } ] } ], "cascade": [ { "nodeKind": "custom_format" } ]}Invalid request (bad JSON, cap violation, bad arrType, unknown change kind)
object
Examplegenerated
{ "error": "example"}Database instance or built cache not found
object
Examplegenerated
{ "error": "example"}Internal server error
object
Examplegenerated
{ "error": "example"}