Export a portable entity
const url = 'https://example.com/api/v1/pcd/export?databaseId=1&entityType=delay_profile&name=example&includeDependencies=false&format=json';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/export?databaseId=1&entityType=delay_profile&name=example&includeDependencies=false&format=json'Serializes a PCD entity into its portable JSON representation.
The portable format strips database IDs and timestamps, producing a self-contained snapshot suitable for clipboard copy, file export, or cross-database import.
name may be repeated (?name=A&name=B) to export several entities of the
same entityType. Set includeDependencies=true to also export the
custom formats and regular expressions a quality profile references (and the
regular expressions a custom format references). Set format=bundle to force
the bundle response shape.
Response shape rule: the legacy ExportResponse (entityType, data,
migration) is returned if and only if exactly one name is supplied and
neither includeDependencies=true nor format=bundle is set. Every other
request returns a PcdBundleExportResponse. A bundle holds at most 1000
entities; exceeding the cap returns 400.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The PCD database ID to export from
Portable PCD entity identifiers used by import/export endpoints.
Lidarr media-management entities are first-class portable contract members:
lidarr_naminglidarr_media_settingslidarr_quality_definitions
Runtime validation is deterministic and fail-fast for Lidarr payloads:
payloads are rejected when required fields are missing, when unsupported
fields are present, or when cross-family fields are mixed into the payload
(for example Radarr naming fields with lidarr_naming).
Clients must emit lidarr_* entity types for Lidarr entities.
The entity type to export
The entity name to export. Repeat the parameter to export several entities.
Also export referenced custom formats and regular expressions.
Force the response shape. bundle always returns a PcdBundleExportResponse.
Responses
Section titled “Responses”Portable entity JSON (legacy shape) or entity bundle
object
Portable PCD entity identifiers used by import/export endpoints.
Lidarr media-management entities are first-class portable contract members:
lidarr_naminglidarr_media_settingslidarr_quality_definitions
Runtime validation is deterministic and fail-fast for Lidarr payloads:
payloads are rejected when required fields are missing, when unsupported
fields are present, or when cross-family fields are mixed into the payload
(for example Radarr naming fields with lidarr_naming).
Clients must emit lidarr_* entity types for Lidarr entities.
Optional migration metadata for hybrid ingestion/egress.
object
Migration payload format marker (json for JSON payloads, yaml for YAML
in future hybrid ingestion flows).
Migration schema contract version for hybrid payloads.
Migration source marker (example: pcd-export, pcd-file, pcd-importer).
object
object
object
Condition data (shape varies by condition type)
object
object
object
Ordered quality item (quality or group)
object
object
Arr target for this score mapping. lidarr is a first-class value
so quality profile custom-format scores can be scoped to a specific Arr
app family. all applies the score to every supported family.
Non-regression contract: existing radarr, sonarr, and all
enum semantics are unchanged; lidarr is an explicit additional arr
target value and does not introduce fallback alias behavior.
object
Portable naming payload for Sonarr entities.
object
Portable naming payload for lidarr_naming.
The wire shape matches PortableSonarrNaming (shared column structure).
Field semantics are Lidarr-native (artist/album/track tokens).
object
Shared media-management settings payload shape used across Arr families.
object
Portable payload for lidarr_media_settings.
The shape matches PortableMediaSettings.
object
Shared quality-definition payload shape used across Arr families.
object
Quality definition entry with min/max/preferred sizes
object
object
object
object
object
Portable payload for lidarr_quality_definitions.
The shape matches PortableQualityDefinitions.
object
Quality definition entry with min/max/preferred sizes
object
object
A set of portable PCD entities that can be exported together with their dependencies and imported atomically.
object
Bundle format version. Only 1 is supported.
Portable entities ordered dependency-first (regular expressions, custom formats, quality profiles, then all other entity types). A bundle holds at most 1000 entities and its JSON body is capped at 5 MiB.
object
Portable PCD entity identifiers used by import/export endpoints.
Lidarr media-management entities are first-class portable contract members:
lidarr_naminglidarr_media_settingslidarr_quality_definitions
Runtime validation is deterministic and fail-fast for Lidarr payloads:
payloads are rejected when required fields are missing, when unsupported
fields are present, or when cross-family fields are mixed into the payload
(for example Radarr naming fields with lidarr_naming).
Clients must emit lidarr_* entity types for Lidarr entities.
object
object
object
Condition data (shape varies by condition type)
object
object
object
Ordered quality item (quality or group)
object
object
Arr target for this score mapping. lidarr is a first-class value
so quality profile custom-format scores can be scoped to a specific Arr
app family. all applies the score to every supported family.
Non-regression contract: existing radarr, sonarr, and all
enum semantics are unchanged; lidarr is an explicit additional arr
target value and does not introduce fallback alias behavior.
object
Portable naming payload for Sonarr entities.
object
Portable naming payload for lidarr_naming.
The wire shape matches PortableSonarrNaming (shared column structure).
Field semantics are Lidarr-native (artist/album/track tokens).
object
Shared media-management settings payload shape used across Arr families.
object
Portable payload for lidarr_media_settings.
The shape matches PortableMediaSettings.
object
Shared quality-definition payload shape used across Arr families.
object
Quality definition entry with min/max/preferred sizes
object
object
object
object
object
Portable payload for lidarr_quality_definitions.
The shape matches PortableQualityDefinitions.
object
Quality definition entry with min/max/preferred sizes
object
Dependencies referenced by an exported entity that do not exist in the source database. Present only when non-empty.
A reference (quality profile to custom format, custom format to regular expression) that resolves neither inside the bundle nor in the target database.
object
Portable PCD entity identifiers used by import/export endpoints.
Lidarr media-management entities are first-class portable contract members:
lidarr_naminglidarr_media_settingslidarr_quality_definitions
Runtime validation is deterministic and fail-fast for Lidarr payloads:
payloads are rejected when required fields are missing, when unsupported
fields are present, or when cross-family fields are mixed into the payload
(for example Radarr naming fields with lidarr_naming).
Clients must emit lidarr_* entity types for Lidarr entities.
Portable PCD entity identifiers used by import/export endpoints.
Lidarr media-management entities are first-class portable contract members:
lidarr_naminglidarr_media_settingslidarr_quality_definitions
Runtime validation is deterministic and fail-fast for Lidarr payloads:
payloads are rejected when required fields are missing, when unsupported
fields are present, or when cross-family fields are mixed into the payload
(for example Radarr naming fields with lidarr_naming).
Clients must emit lidarr_* entity types for Lidarr entities.
Example
{ "entityType": "delay_profile", "migration": { "format": "json" }, "data": { "preferredProtocol": "prefer_usenet" }}Missing or invalid parameters, the bundle exceeds the 1000 entity cap, or the dependency walk was truncated
object
Optional machine-readable error code, for example sync_in_progress or preview_stale
Examplegenerated
{ "error": "example", "code": "example"}Entity not found
object
Optional machine-readable error code, for example sync_in_progress or preview_stale
Examplegenerated
{ "error": "example", "code": "example"}Database cache not available
object
Optional machine-readable error code, for example sync_in_progress or preview_stale
Examplegenerated
{ "error": "example", "code": "example"}