Data qualities
The Data qualities API enables you to assess the quality of your datasets through asynchronous computations. Computations run in two phases: profiling (analyzing column statistics) and assessment (evaluating quality rules) to produce aggregated quality metrics.
Endpoints
Retrieves the status of a batch computation, including per-dataset statuses.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Path Parameters
- batchComputationId stringRequired
Batch computation ID for tracking progress of the overall data quality computations.
Responses
200
Batch computation status retrieved successfully.
Body
- application/json object
Status of a batch computation, including per-dataset breakdown.
application/json properties
- status stringRequired
Overall status aggregated across all datasets in the batch.
Can be one of: "IN_PROGRESS""FINISHED"
- batchComputationId stringRequired
The unique identifier of the batch computation.
- computationStatuses array of objectsRequired
Status of each individual dataset computation within the batch.
computationStatuses properties
- status stringRequired
Status of a data quality computation.
Can be one of: "PROFILE_REQUESTED""PROFILE_FAILED""REQUESTED""SUBMITTED""SUCCEEDED""FAILED"
- datasetId stringRequired
The ID of the dataset
- errorCode string
Error code indicating the reason for failure.
Can be one of: "DQ-100""DQ-110""DQ-120""DQ-121""DQ-130""DQ-140""DQ-150""DQ-200""DQ-300""DQ-310""DQ-320""DQ-400""DQ-500""DQ-160""DQ-330""DQ-170""DQ-171"
- computationId stringRequired
The unique identifier of the individual computation for this dataset.
-
-
400
The request is in incorrect format.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
401
User does not have valid authentication credentials.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
403
User does not have access to the resource.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
404
Batch computation not found.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
500
Internal Server Error.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
503
Requested service is not available.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataQualities.getDataQualitiesBatchComputation( 'a3f1b2c4-5678-90ab-cdef-1234567890ab',)qlik data-governance data-quality batch-computation get 'a3f1b2c4-5678-90ab-cdef-1234567890ab'curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-qualities/batch-computations/{batchComputationId}" \-H "Authorization: Bearer <access_token>"Example Response
{ "status": "IN_PROGRESS", "batchComputationId": "string", "computationStatuses": [ { "status": "SUCCEEDED", "datasetId": "669144f5aa2d642638ef1dd0", "errorCode": "DQ-100", "computationId": "string" } ]}Triggers a full data quality computation for a dataset, running profile calculation followed by data quality
assessment. Returns a computationId that can be used to track progress via the computation status endpoint
(GET /data-governance/data-qualities/computations/{computationId}). The computation runs asynchronously.
Poll the status endpoint until status is SUCCEEDED or FAILED.
Facts
| Rate limit | Special (10 requests per minute) |
| Replaces |
Request Body
RequiredBody
- application/json object
Request payload for triggering a data quality computation. The
connectionIdis optional for file-based datasets. If none of the sampling parameters are provided, the following defaults apply:executionMode: PULLUPsampleMode: ABSOLUTEsampleSize: 1000sampleMethod: HEADwhenexecutionModeisPULLUP, orRANDOMwhenexecutionModeisPUSHDOWN
application/json properties
- datasetId stringRequired
The ID of the dataset
- connectionId string
The ID of the connection
- sampleMode string
Specifies how the dataset is sampled.
ABSOLUTErepresents a fixed number of rows, whileRELATIVErefers to a percentage of the total dataset rows.Can be one of: "ABSOLUTE""RELATIVE"
- sampleSize integer
The actual value of the selected sampling method size (either a fixed number for
ABSOLUTEmode or a percentage forRELATIVEmode). Maximum allowed value forABSOLUTEmode is100000. - sampleMethod string
Specifies how rows are selected from the dataset.
HEADreads the first rows, whileRANDOMreads a random selection of rows. If omitted, defaults toHEADwhenexecutionModeisPULLUP, orRANDOMwhenexecutionModeisPUSHDOWN. SelectingRANDOMwhileexecutionModeisPULLUPis currently only supported for QVD datasets.Can be one of: "HEAD""RANDOM"
- executionMode string
Specifies where the data quality computation takes place. In
PUSHDOWNmode, it runs within the Cloud Data Warehouse (e.g., Snowflake, Databricks), whereas inPULLUPmode, it runs in Qlik Cloud.Can be one of: "PUSHDOWN""PULLUP"
Responses
202
Computation triggered. The response body contains the computationId for tracking progress.
Headers
- location string
URL to retrieve the computation status.
Body
- application/json object
Response returned when a data quality computation is successfully triggered.
application/json properties
- computationId stringRequired
The unique identifier of the triggered computation. Use this value to poll for status.
-
400
The request is in incorrect format.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
401
User does not have valid authentication credentials.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
403
User does not have access to the resource.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
500
Internal Server Error.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
503
Requested service is not available.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataQualities.createDataQualityComputation( { connectionId: '2b855c3d-426c-4aac-90cf-0edf9fc294d3', datasetId: '669144f5aa2d642638ef1dd0', executionMode: 'PULLUP', sampleMethod: 'HEAD', sampleMode: 'ABSOLUTE', sampleSize: 10000, },)qlik data-governance data-quality computation createcurl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-qualities/computations" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"datasetId":"669144f5aa2d642638ef1dd0","sampleMode":"ABSOLUTE","sampleSize":10000,"connectionId":"2b855c3d-426c-4aac-90cf-0edf9fc294d3","sampleMethod":"HEAD","executionMode":"PULLUP"}'Example Response
{ "computationId": "string"}Retrieves the current execution status of a data quality computation. Poll this endpoint after triggering a
computation to determine when results are available. The status field returns one of REQUESTED,
SUBMITTED, PROFILE_REQUESTED, SUCCEEDED, FAILED, or PROFILE_FAILED.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Replaces |
Path Parameters
- computationId stringRequired
The unique identifier of the computation, as returned by
POST /data-governance/data-qualities/computations.
Responses
200
Current execution status of the computation.
Body
- application/json object
application/json properties
- status stringRequired
Status of a data quality computation.
Can be one of: "PROFILE_REQUESTED""PROFILE_FAILED""REQUESTED""SUBMITTED""SUCCEEDED""FAILED"
-
400
The request is in incorrect format.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
401
User does not have valid authentication credentials.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
403
User does not have access to the resource.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
404
No computation found with the specified computationId.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
500
Internal Server Error.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
503
Requested service is not available.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataQualities.getDataQualityComputation( '4db06daa-3117-412e-8fb4-b29c937f9a0e',)qlik data-governance data-quality computation get '4db06daa-3117-412e-8fb4-b29c937f9a0e'curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-qualities/computations/{computationId}" \-H "Authorization: Bearer <access_token>"Example Response
{ "status": "SUCCEEDED"}Retrieves the latest computed field quality metrics for a list of datasets. The maximum number of datasets is 100. When a dataset has been analyzed through multiple connections, the response returns the result from the most recently computed connection.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Request Body
RequiredBody
- application/json object
application/json properties
- datasets array of objectsRequired
List of datasets to retrieve field qualities for.
datasets properties
- datasetId stringRequired
The ID of the dataset
-
-
Responses
200
Field qualities retrieved successfully.
Body
- application/json object
Response containing field quality results for the requested datasets.
application/json properties
- fieldQualities array of objectsRequired
List of field quality results per dataset.
fieldQualities properties
- fields array of objectsRequired
List of fields and their quality metrics.
fields properties
- name stringRequired
The name of the field.
- type objectRequired
Information about the type of the field.
type properties
- kind stringRequired
The kind of the field type.
Can be one of: "STANDARD""SEMANTIC"
- name string
The name of the standard type (if applicable).
- precision string
The precision of the type (e.g., for date/time fields).
Can be one of: "timestamp-millis""timestamp-micros""time-millis""time-micros""date"
- semanticTypeId string
The ID of the semantic type (if applicable).
-
- quality objectRequired
Quality metrics for the field.
quality properties
- type objectRequired
Quality metrics based on type validation.
type properties
- empty integerRequired
Number of empty sample cells.
- total integerRequired
Total number of cells in the sample.
- valid integerRequired
Number of valid sample cells.
- invalid integerRequired
Number of invalid sample cells.
-
- rules array of objectsRequired
Quality results per rule applied to this field.
rules properties
- ruleId string
The unique identifier of the rule.
- quality object
Detailed quality counts for a single rule.
quality properties
- total integerRequired
Total number of cells evaluated by the rule.
- valid integerRequired
Number of cells that passed the rule.
- errors array of strings
List of error identifiers encountered during rule execution.
- invalid integerRequired
Number of cells that failed the rule.
- notApplicable integerRequired
Number of cells where the rule does not apply.
- notExecutable integerRequired
Number of cells where the rule could not be executed.
-
- ruleMappingId string
The unique identifier of the rule mapping.
-
- aggregated objectRequired
Aggregated metrics for the field.
aggregated properties
- empty integerRequired
Number of empty entries.
- total integerRequired
Total number of entries.
- valid integerRequired
Number of valid entries.
- invalid integerRequired
Number of invalid entries.
-
-
-
- computed objectRequired
Metadata about the computation.
computed properties
- at stringRequired
When the computation occurred.
- by objectRequired
Details about the user who computed the quality.
by properties
- id stringRequired
Identifier of the user.
-
-
- datasetId stringRequired
The ID of the dataset
-
-
400
The request is in incorrect format.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
401
User does not have valid authentication credentials.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
403
User does not have access to the resource.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
500
Internal Server Error.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
503
Requested service is not available.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataQualities.filterDataQualitiesFieldQualities( { datasets: [ { datasetId: '669144f5aa2d642638ef1dd0' }, ], },)qlik data-governance data-quality field-quality filter \ --datasets-datasetId ''curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-qualities/field-qualities/actions/filter" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"datasets":[{"datasetId":"669144f5aa2d642638ef1dd0"}]}'Example Response
{ "fieldQualities": [ { "fields": [ { "name": "string", "type": { "kind": "STANDARD", "name": "customer_id", "precision": "timestamp-millis", "semanticTypeId": "9996fbb942b02a6987534999" }, "quality": { "type": { "empty": 42, "total": 42, "valid": 42, "invalid": 42 }, "rules": [ { "ruleId": "string", "quality": { "total": 42, "valid": 42, "errors": [ "DISABLED_SEMANTIC_TYPE" ], "invalid": 42, "notApplicable": 42, "notExecutable": 42 }, "ruleMappingId": "string" } ], "aggregated": { "empty": 42, "total": 42, "valid": 42, "invalid": 42 } } } ], "computed": { "at": "2023-10-01T12:00:00Z", "by": { "id": "string" } }, "datasetId": "669144f5aa2d642638ef1dd0" } ]}Assigns a standard or semantic type, an emptyValidity policy, or both, to one or more fields in a
dataset, and/or sets the dataset-level default emptyValidity. This is a partial update: only the
fields and properties included in the request are modified; anything not included keeps its
current value unchanged.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Request Body
RequiredThe datasetId of the target dataset and the list of fields to update, each with the standard or
semantic type to assign. Only the fields present in this list are affected.
Body
- application/json object
Request to assign types and/or
emptyValidityto fields, and/or set the dataset-level defaultemptyValidity.application/json properties
- fields array of objectsRequired
List of fields to update with their assigned types.
fields properties
- name stringRequired
The name of the field.
- type object
Information about the type of the field.
type properties
- kind stringRequired
The kind of the field type.
Can be one of: "STANDARD""SEMANTIC"
- name string
The name of the standard type (if applicable).
- precision string
The precision of the type (e.g., for date/time fields).
Can be one of: "timestamp-millis""timestamp-micros""time-millis""time-micros""date"
- semanticTypeId string
The ID of the semantic type (if applicable).
-
- emptyValidity string
Policy applied to an empty (null/blank) cell when computing a field's combined quality.
Can be one of: "VALID""INVALID""EMPTY"
-
- datasetId stringRequired
The ID of the dataset
- emptyValidity string
Policy applied to an empty (null/blank) cell when computing a field's combined quality.
Can be one of: "VALID""INVALID""EMPTY"
-
Responses
204
The requested field types were assigned successfully. The response body is empty.
400
The request is in incorrect format.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
401
User does not have valid authentication credentials.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
403
User does not have access to the resource.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
404
The dataset's field structure, or a referenced semantic type, was not found.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
500
Internal Server Error.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
503
Requested service is not available.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataQualities.putDataQualitiesFieldsStructures( { datasetId: '669144f5aa2d642638ef1dd0', fields: [ { name: 'customer_id', type: { kind: 'STANDARD', name: 'customer_id', precision: 'timestamp-millis', semanticTypeId: '9996fbb942b02a6987534999', }, }, ], },)qlik data-governance data-quality fields-structure update \ --datasetId '669144f5aa2d642638ef1dd0' \ --fields-name '' \ --fields-type-kind '' \ --fields-type-name '' \ --fields-type-precision '' \ --fields-type-semanticTypeId ''curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-qualities/fields-structures" \-X PUT \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"fields":[{"name":"customer_id","type":{"kind":"STANDARD","name":"customer_id","precision":"timestamp-millis","semanticTypeId":"9996fbb942b02a6987534999"},"emptyValidity":"EMPTY"}],"datasetId":"669144f5aa2d642638ef1dd0","emptyValidity":"EMPTY"}'Retrieves the global quality results for a dataset, showing counts of valid, invalid, empty, and total sample cells.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
| Replaces |
Query Parameters
- datasetId stringRequired
The unique identifier of the dataset.
- connectionId string
The unique identifier of the connection.
Responses
200
Global quality results for the dataset, including counts of valid, invalid, empty, and total sample cells per connection.
Body
- application/json object
application/json properties
- datasetId stringRequired
The unique identifier of the dataset.
- qualities array of objectsRequired
qualities properties
- quality object
quality properties
- empty integerRequired
Number of empty sample cells.
- total integerRequired
Total number of cells in the sample.
- valid integerRequired
Number of valid sample cells.
- invalid integerRequired
Number of invalid sample cells.
- updatedAt stringRequired
Timestamp of the most recent data quality computation for this dataset and connection.
-
- connectionId stringRequired
The unique identifier of the connection.
-
-
400
The request is in incorrect format.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
401
User does not have valid authentication credentials.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
403
User does not have access to the resource.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
404
No quality results found for the specified dataset.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
500
Internal Server Error.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
503
Requested service is not available.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataQualities.getDataQualityGlobalResults( { datasetId: '669144f5aa2d642638ef1dd0' },)qlik data-governance data-quality global-result ls \ --datasetId '669144f5aa2d642638ef1dd0'curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-qualities/global-results" \-H "Authorization: Bearer <access_token>"Example Response
{ "datasetId": "string", "qualities": [ { "quality": { "empty": 42, "total": 42, "valid": 42, "invalid": 42, "updatedAt": "2023-10-01T12:00:00Z" }, "connectionId": "string" } ]}Retrieves the latest computed global quality metrics for a list of datasets. The maximum number of datasets is 100. When a dataset has been analyzed through multiple connections, the response returns the result from the most recently computed connection.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Request Body
RequiredBody
- application/json object
Request containing a list of dataset IDs to filter on.
application/json properties
- datasetIds array of stringsRequired
List of dataset IDs to retrieve results for.
-
Responses
200
Data quality global results for the requested datasets.
Body
- application/json object
Response containing data quality global results grouped by dataset.
application/json properties
- dataQualities array of objectsRequired
List of data quality results, one per dataset and connection pair.
dataQualities properties
- error object
Details of an execution failure.
error properties
- reason string
A human-readable explanation of the failure.
- errorCode stringRequired
The error code identifying the failure reason.
- executedAt string
Timestamp when the execution failed.
-
- status stringRequired
Status of a data quality computation.
Can be one of: "PROFILE_REQUESTED""PROFILE_FAILED""REQUESTED""SUBMITTED""SUCCEEDED""FAILED"
- quality object
quality properties
- empty integerRequired
Number of empty sample cells.
- total integerRequired
Total number of cells in the sample.
- valid integerRequired
Number of valid sample cells.
- invalid integerRequired
Number of invalid sample cells.
- updatedAt stringRequired
Timestamp of the most recent data quality computation for this dataset and connection.
-
- datasetId stringRequired
The ID of the dataset
- connectionId stringRequired
The ID of the connection
-
-
400
The request is in incorrect format.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
401
User does not have valid authentication credentials.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
403
User does not have access to the resource.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
500
Internal Server Error.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
503
Requested service is not available.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataQualities.filterDataQualitiesGlobalResults( { datasetIds: ['669144f5aa2d642638ef1dd0'] },)qlik data-governance data-quality global-result filter \ --datasetIds '669144f5aa2d642638ef1dd0'curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-qualities/global-results/actions/filter" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"datasetIds":["669144f5aa2d642638ef1dd0"]}'Example Response
{ "dataQualities": [ { "error": { "reason": "string", "errorCode": "string", "executedAt": "2023-10-01T12:00:00Z" }, "status": "SUCCEEDED", "quality": { "empty": 42, "total": 42, "valid": 42, "invalid": 42, "updatedAt": "2023-10-01T12:00:00Z" }, "datasetId": "string", "connectionId": "string" } ]}Retrieves the dataset-level rule-quality outcomes for a rule, plus the aggregate outcome across the included
datasets. When datasetIds is provided (max 100), the result and aggregate are limited to those datasets
that are accessible to the caller. When datasetIds is absent or empty, the service determines all
accessible datasets where the rule is instantiated and returns the result and aggregate for that scope.
For each dataset in the resolved scope, the service selects the most recent data quality computation
across all connections. Only datasets whose latest computation contains a result for the requested rule
are included in ruleQualities and contribute to ruleQualityAggregate. Datasets without a computed
quality result, or whose latest computation has no result for the requested rule, are excluded; the
service does not fall back to an older computation. This behavior also applies when datasetIds is
absent or empty.
The ruleQualities list is sorted by datasetId and paginated using the page and limit query
parameters. Set sortDescending to true to sort in descending order (default is ascending).
ruleQualityAggregate always covers the full resolved scope, independently of sorting and pagination.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Query Parameters
- sortDescending boolean
When true, sorts the
ruleQualitieslist bydatasetIdin descending order. Defaults to false (ascending). - page integer
Page number to retrieve (1-indexed). Defaults to 1.
- limit integer
Maximum number of datasets to return in the
ruleQualitiespage.
Request Body
RequiredBody
- application/json object
Request to retrieve rule-quality outcomes for a rule across an optional dataset selection.
application/json properties
- ruleId stringRequired
The unique identifier of the rule to analyze, represented as a 24-character hexadecimal MongoDB ObjectId.
- datasetIds array of strings
Optional selection of datasets. When non-empty, only these datasets are considered (filtered to those accessible to the caller); the maximum number of dataset IDs is 100. When absent or empty, the service determines all accessible datasets where the rule is instantiated.
-
Responses
200
Rule-quality aggregation for the requested rule.
Body
- application/json object
Rule-quality outcomes for a rule, grouped per dataset, plus the aggregate across all included datasets.
ruleQualityAggregatesums the quality counts of all field/rule-mapping entries for the requested rule across all included datasets, using the latest computation per dataset. It is independent of sorting and pagination and is not limited to the datasets in the currentruleQualitiespage.application/json properties
- ruleId stringRequired
The unique identifier of the analyzed rule.
- ruleQualities array of objectsRequired
Rule-quality outcomes, one entry per dataset in the current page.
ruleQualities properties
- fields array of objectsRequired
Rule-quality outcome for each field of this dataset where the rule is mapped.
fields properties
- quality objectRequired
Detailed quality counts for a rule applied to a single field, plus computation metadata.
quality properties
- total integerRequired
Total number of cells evaluated by the rule.
- valid integerRequired
Number of cells that passed the rule.
- errors array of strings
List of error identifiers encountered during rule execution.
- invalid integerRequired
Number of cells that failed the rule.
- updatedAt stringRequired
Timestamp of the computation this outcome comes from.
- notApplicable integerRequired
Number of cells where the rule does not apply.
- notExecutable integerRequired
Number of cells where the rule could not be executed.
-
- fieldName stringRequired
The name of the field the rule is mapped to.
- ruleMappingId stringRequired
The unique identifier of the rule mapping.
-
- datasetId stringRequired
The ID of the dataset
- datasetAggregate objectRequired
Summed quality counts across one or more field/rule-mapping entries.
datasetAggregate properties
- total integerRequired
Sum of the total cell counts across the included field/rule-mapping entries.
- valid integerRequired
Sum of the numbers of cells that passed the rule across the included field/rule-mapping entries.
- invalid integerRequired
Sum of the numbers of cells that failed the rule across the included field/rule-mapping entries.
- notApplicable integerRequired
Sum of the numbers of cells where the rule does not apply across the included field/rule-mapping entries.
- notExecutable integerRequired
Sum of the numbers of cells where the rule could not be executed across the included field/rule-mapping entries.
-
-
- ruleQualityAggregate objectRequired
Summed quality counts across one or more field/rule-mapping entries.
ruleQualityAggregate properties
- total integerRequired
Sum of the total cell counts across the included field/rule-mapping entries.
- valid integerRequired
Sum of the numbers of cells that passed the rule across the included field/rule-mapping entries.
- invalid integerRequired
Sum of the numbers of cells that failed the rule across the included field/rule-mapping entries.
- notApplicable integerRequired
Sum of the numbers of cells where the rule does not apply across the included field/rule-mapping entries.
- notExecutable integerRequired
Sum of the numbers of cells where the rule could not be executed across the included field/rule-mapping entries.
-
-
400
The request is in incorrect format.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
401
User does not have valid authentication credentials.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
403
User does not have access to the resource.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
404
No rule found with the specified ruleId.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
500
Internal Server Error.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
503
Requested service is not available.
Body
- application/json object
Standard error response wrapper.
application/json properties
- errors array of objectsRequired
List of errors that occurred.
errors properties
- code stringRequired
The error code identifying the type of error.
- title stringRequired
A short summary of the error.
- detail string
A human-readable explanation of the error.
-
- traceId string
Trace identifier for debugging purposes.
-
// qlik-api has not implemented support for `POST /api/data-governance/data-qualities/global-results/data-quality-rules/actions/filter` yet.// In the meantime, you can use fetch like this:
const response = await fetch( '/api/data-governance/data-qualities/global-results/data-quality-rules/actions/filter', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ ruleId: '9996fbb942b02a6987534999', datasetIds: ['669144f5aa2d642638ef1dd0'], }), },)qlik data-governance data-quality global-result data-quality-rule filter \ --ruleId '9996fbb942b02a6987534999'curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-qualities/global-results/data-quality-rules/actions/filter" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"ruleId":"9996fbb942b02a6987534999","datasetIds":["669144f5aa2d642638ef1dd0"]}'Example Response
{ "ruleId": "string", "ruleQualities": [ { "fields": [ { "quality": { "total": 42, "valid": 42, "errors": [ "string" ], "invalid": 42, "updatedAt": "2023-10-01T12:00:00Z", "notApplicable": 42, "notExecutable": 42 }, "fieldName": "string", "ruleMappingId": "string" } ], "datasetId": "669144f5aa2d642638ef1dd0", "datasetAggregate": { "total": 42, "valid": 42, "invalid": 42, "notApplicable": 42, "notExecutable": 42 } } ], "ruleQualityAggregate": { "total": 42, "valid": 42, "invalid": 42, "notApplicable": 42, "notExecutable": 42 }}