ID
DG-3070
Type
Guide
Version
1.0
Status
Active
Created date
Updated date
Quick intro
This section outlines a common implementation pattern for writing (creating / updating) information with the PCA™.
Validate resource
The objective of this pattern is to validate the resource and if the validated resource already exists based on some write criteria (usually an identifier), issue an update (where all details will be updated), else issue a create operation:
if (validate.resource?id == true)
if (read.resource?id != null)
update.resource?details.json
else
create.resource?details.json
else
log.error(“Resource failed validation”)
Home | Back: Submit match record | Next: API reference