Export a portable entity
const url = 'https://example.com/api/v1/pcd/export?databaseId=1&entityType=delay_profile&name=example';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'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.
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
Responses
Section titled “Responses”Portable entity JSON
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
Example
{ "entityType": "delay_profile", "migration": { "format": "json" }, "data": { "preferredProtocol": "prefer_usenet" }}Missing or invalid parameters
object
Examplegenerated
{ "error": "example"}Entity not found
object
Examplegenerated
{ "error": "example"}Database cache not available
object
Examplegenerated
{ "error": "example"}