Create a Lidarr metadata profile
const url = 'https://example.com/api/v1/pcd/1/lidarr-metadata-profiles';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","layer":"user","primaryTypes":[{"id":1,"name":"example","allowed":true}],"secondaryTypes":[{"id":1,"name":"example","allowed":true}],"releaseStatuses":[{"id":1,"name":"example","allowed":true}]}'};
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/pcd/1/lidarr-metadata-profiles \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "layer": "user", "primaryTypes": [ { "id": 1, "name": "example", "allowed": true } ], "secondaryTypes": [ { "id": 1, "name": "example", "allowed": true } ], "releaseStatuses": [ { "id": 1, "name": "example", "allowed": true } ] }'Creates a Lidarr metadata profile in the selected PCD database.
Runtime validation enforces Lidarr-specific rules including:
- case-insensitive unique profile name
- reserved name
Noneis rejected - all source categories include explicit
allowedbooleans - type/status rows in write payloads use
id,name, andallowed.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”PCD database ID
Request Bodyrequired
Section titled “Request Bodyrequired”Create payload for Lidarr metadata profile entities.
Full arrays are expected for each section group; runtime validation enforces:
- all known types/statuses are represented with explicit
allowedflags - at least one enabled primary, one enabled secondary, one enabled status
- reserved profile name
Noneis rejected - case-insensitive name uniqueness in the target PCD database
object
Write target for the operation. Defaults to user.
object
Lidarr identifier for an album or release-status entry used by write operations.
Lidarr album type name
Whether the type is selected
object
Lidarr identifier for an album or release-status entry used by write operations.
Lidarr album type name
Whether the type is selected
object
Lidarr release status id
Lidarr release status name
Whether the status is selected
Responses
Section titled “Responses”Metadata profile created
object
Examplegenerated
{ "success": true, "error": "example"}Validation error
object
Optional machine-readable error code, for example sync_in_progress or preview_stale
Examplegenerated
{ "error": "example", "code": "example"}Base layer write is not allowed
object
Optional machine-readable error code, for example sync_in_progress or preview_stale
Examplegenerated
{ "error": "example", "code": "example"}Write failed
object
Optional machine-readable error code, for example sync_in_progress or preview_stale
Examplegenerated
{ "error": "example", "code": "example"}