Enrichment Run
Enrichment fills in missing information on a record from Lightfield’s data providers.
Enrich a record
client.EnrichmentRun.Enrich(ctx, entityID, params) (*EnrichmentRunEnrichResponse, error)
POST/v1/enrichmentRun/{entitySlug}/{entityId}
Get enrichment run status
client.EnrichmentRun.GetEnrichmentRun(ctx, runID) (*EnrichmentRunGetEnrichmentRunResponse, error)
GET/v1/enrichmentRun/{runId}
ModelsExpand Collapse
type EnrichmentRunEnrichResponse struct{…}
type EnrichmentRunEnrichResponse struct{…}
EnrichmentRun EnrichmentRunEnrichResponseEnrichmentRunThe run, or null when the request was skipped.
EnrichmentRun EnrichmentRunEnrichResponseEnrichmentRun
The run, or null when the request was skipped.
Status stringWhere the run is: queued and running are in flight; completed, failed and timed_out are final.
Status string
Where the run is: queued and running are in flight; completed, failed and timed_out are final.
One of the following:
const EnrichmentRunEnrichResponseEnrichmentRunStatusQueued EnrichmentRunEnrichResponseEnrichmentRunStatus = "queued"
const EnrichmentRunEnrichResponseEnrichmentRunStatusRunning EnrichmentRunEnrichResponseEnrichmentRunStatus = "running"
const EnrichmentRunEnrichResponseEnrichmentRunStatusCompleted EnrichmentRunEnrichResponseEnrichmentRunStatus = "completed"
Reason EnrichmentRunEnrichResponseReasonWhy the request was skipped: no_targets when the workspace enriches nothing this record is missing, no_operations when no provider can be scheduled for the targeted fields — because none looks them up on request, or because the record lacks the inputs (such as an email or domain) a lookup would need. Null otherwise.
Reason EnrichmentRunEnrichResponseReason
Why the request was skipped: no_targets when the workspace enriches nothing this record is missing, no_operations when no provider can be scheduled for the targeted fields — because none looks them up on request, or because the record lacks the inputs (such as an email or domain) a lookup would need. Null otherwise.
type EnrichmentRunGetEnrichmentRunResponse struct{…}
type EnrichmentRunGetEnrichmentRunResponse struct{…}
Status EnrichmentRunGetEnrichmentRunResponseStatusWhere the run is: queued and running are in flight; completed, failed and timed_out are final.
Status EnrichmentRunGetEnrichmentRunResponseStatus
Where the run is: queued and running are in flight; completed, failed and timed_out are final.
One of the following:
const EnrichmentRunGetEnrichmentRunResponseStatusQueued EnrichmentRunGetEnrichmentRunResponseStatus = "queued"
const EnrichmentRunGetEnrichmentRunResponseStatusRunning EnrichmentRunGetEnrichmentRunResponseStatus = "running"
const EnrichmentRunGetEnrichmentRunResponseStatusCompleted EnrichmentRunGetEnrichmentRunResponseStatus = "completed"