Get PCD snapshot detail
const url = 'https://example.com/api/v1/pcd/1/snapshots/1';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/snapshots/1Returns full snapshot detail including computed fields for restore context
(opsWrittenSince, isRestorable). Restore support is not yet implemented,
so isRestorable is always false.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”PCD database ID
PCD snapshot ID
Responses
Section titled “Responses”Snapshot full detail
object
Whether the snapshot was auto-created or user-initiated
What event triggered the snapshot creation.
- pull: before a PCD repository pull/refresh
- sync: before an Arr instance sync
- manual: user-initiated via API
Maximum pcd_ops ID at snapshot time
Count of published base-origin ops
Count of published user-origin ops
SHA-256 state fingerprint
Arr instance IDs targeted by this operation
Number of ops written after this snapshot (count of pcd_ops rows with id greater than opsSequenceMaxId)
Always false in this release. Restore support is not yet implemented.
Example
{ "type": "auto", "trigger": "pull"}Invalid parameters
object
Examplegenerated
{ "error": "example"}Snapshot not found or doesn’t belong to database
object
Examplegenerated
{ "error": "example"}Failed to fetch snapshot
object
Examplegenerated
{ "error": "example"}