Get the resolved dependency graph for a PCD database
const url = 'https://example.com/api/v1/pcd/1/graph?arrType=radarr&nodeKind=custom_format';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/pcd/1/graph?arrType=radarr&nodeKind=custom_format'Returns the dependency graph of config entities for a PCD database, computed on demand from the in-memory PCD cache (read-only). Nodes are custom formats, regular expressions, quality profiles, qualities, and quality definitions; edges are referrer -> dependency relationships: quality profile -> custom format (scored), custom format -> regular expression, quality profile -> quality, and quality definition -> quality.
arrType filters to edges scoped to that Arr app (plus all edges) and
to quality profiles compatible with it; nodeKind filters nodes/edges to
a single entity family. All arr-scoped edges resolve by explicit
arr_type with no sibling fallback.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”PCD database ID
Query Parameters
Section titled “Query Parameters”Restrict to edges scoped to this Arr app (and all) and compatible quality profiles
Restrict the graph to a single entity family
Responses
Section titled “Responses”Dependency graph
object
PCD database ID
Every in-scope entity node, with in/out degree and (where applicable) compatibility
object
PCD entity family a dependency-graph node represents. quality and
quality_definition are leaf kinds with no per-id editor route (see
GraphNode.routeId).
Name-keyed identifier (never a route id)
Integer editor id for linkable kinds (custom_format,
regular_expression, quality_profile); null for leaf kinds
(quality, quality_definition) that have no per-id editor route.
Number of edges pointing at this node (how many entities reference it)
Number of edges leaving this node (how many entities it depends on)
Arr apps this node is valid for, present only for quality_profile and
quality nodes. For quality profiles it is derived from
computeProfileCompatibility (never from arr_type='all' scores).
Referrer -> dependency edges, filtered by the requested arrType/nodeKind
object
object
PCD entity family a dependency-graph node represents. quality and
quality_definition are leaf kinds with no per-id editor route (see
GraphNode.routeId).
Name-keyed identifier of the referenced entity
object
PCD entity family a dependency-graph node represents. quality and
quality_definition are leaf kinds with no per-id editor route (see
GraphNode.routeId).
Name-keyed identifier of the referenced entity
Relationship family. Direction is always referrer (from) -> dependency
(to).
Arr scope of a dependency edge. all is a first-class, distinct value (an
edge that applies to every Arr app); it is never expanded into per-arr
edges and never establishes per-arr quality-profile compatibility.
Custom-format score, present only on quality_profile_custom_format edges
Quality group name, present only on grouped quality_profile_quality edges
Distinct arr scopes present across the returned edges
True when the graph exceeded the server-side edge cap and was truncated
Example
{ "nodes": [ { "kind": "custom_format", "compatibleArrTypes": [ "radarr" ] } ], "edges": [ { "from": { "kind": "custom_format" }, "to": { "kind": "custom_format" }, "edgeKind": "quality_profile_custom_format", "arrType": "radarr" } ], "arrTypesPresent": [ "radarr" ]}Invalid databaseId, unknown arrType/nodeKind, or database not ready
object
Error message
Examplegenerated
{ "error": "example"}Authentication required
object
Error message
Examplegenerated
{ "error": "example"}Failed to build the dependency graph
object
Error message
Examplegenerated
{ "error": "example"}