New API endpoints for computing and retrieving data quality for datasets in a data product
The Data products and Data qualities APIs add four endpoints that let you trigger a data quality refresh for the datasets in a data product and retrieve the results programmatically, replacing manual refreshes in the Qlik Cloud hub. Use them from a pipeline orchestration tool or a scheduled Qlik Automate automation to keep a data product’s quality metrics and Qlik Trust Score™ up to date on a schedule, or automatically whenever new data lands.
Use the following endpoints together, in order:
POST /api/data-governance/data-products/{dataProductId}/actions/compute-datasets-data-quality: Trigger a data quality computation for every dataset in a data product. Returns abatchComputationIdfor tracking progress.GET /api/data-governance/data-qualities/batch-computations/{batchComputationId}: Poll with thebatchComputationIdfrom step 1 untilstatusisFINISHED. The response lists thedatasetIdandcomputationIdfor every dataset in the batch.POST /api/data-governance/data-qualities/global-results/actions/filter: Pass thedatasetIdvalues from step 2 to retrieve global quality results (valid, invalid, empty, and total sample cell counts) for up to 100 datasets at once.POST /api/data-governance/data-qualities/field-qualities/actions/filter: Pass the samedatasetIdvalues to retrieve field-level quality results for up to 100 datasets at once. Field-level quality results are now available through the public API for the first time.
Once the batch computation finishes, you can also pass the same datasetId values to the
Trust Scores API to retrieve the updated Qlik Trust Score™ for each
dataset.
For more information, see the reference documentation for the Data products and Data qualities APIs.