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.

Get batch computation status

Retrieves the status of a batch computation, including per-dataset statuses.

Facts

Rate limit Tier 1 (1000 requests per minute)

Path Parameters

  • batchComputationId string
    Required

    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.

    Show application/json properties
    • status string
      Required

      Overall status aggregated across all datasets in the batch.

      Can be one of: "IN_PROGRESS""FINISHED"

    • batchComputationId string
      Required

      The unique identifier of the batch computation.

    • computationStatuses array of objects
      Required

      Status of each individual dataset computation within the batch.

      Show computationStatuses properties
      • status string
        Required

        Status of a data quality computation.

        Can be one of: "PROFILE_REQUESTED""PROFILE_FAILED""REQUESTED""SUBMITTED""SUCCEEDED""FAILED"

      • datasetId string
        Required

        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 string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        A short summary of the error.

      • detail string

        A human-readable explanation of the error.

    • traceId string

      Trace identifier for debugging purposes.

GET /api/data-governance/data-qualities/batch-computations/{batchComputationId}
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"
}
]
}

Trigger data quality computation

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

Required

Body

  • application/json object

    Request payload for triggering a data quality computation. The connectionId is optional for file-based datasets. If none of the sampling parameters are provided, the following defaults apply:

    • executionMode: PULLUP
    • sampleMode: ABSOLUTE
    • sampleSize: 1000
    • sampleMethod: HEAD when executionMode is PULLUP, or RANDOM when executionMode is PUSHDOWN
    Show application/json properties
    • datasetId string
      Required

      The ID of the dataset

    • connectionId string

      The ID of the connection

    • sampleMode string

      Specifies how the dataset is sampled. ABSOLUTE represents a fixed number of rows, while RELATIVE refers 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 ABSOLUTE mode or a percentage for RELATIVE mode). Maximum allowed value for ABSOLUTE mode is 100000.

    • sampleMethod string

      Specifies how rows are selected from the dataset. HEAD reads the first rows, while RANDOM reads a random selection of rows. If omitted, defaults to HEAD when executionMode is PULLUP, or RANDOM when executionMode is PUSHDOWN. Selecting RANDOM while executionMode is PULLUP is currently only supported for QVD datasets.

      Can be one of: "HEAD""RANDOM"

    • executionMode string

      Specifies where the data quality computation takes place. In PUSHDOWN mode, it runs within the Cloud Data Warehouse (e.g., Snowflake, Databricks), whereas in PULLUP mode, 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.

    Show application/json properties
    • computationId string
      Required

      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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        A short summary of the error.

      • detail string

        A human-readable explanation of the error.

    • traceId string

      Trace identifier for debugging purposes.

POST /api/data-governance/data-qualities/computations
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 create
curl "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"
}

Get data quality computation status

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 string
    Required

    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
    Show application/json properties
    • status string
      Required

      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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        A short summary of the error.

      • detail string

        A human-readable explanation of the error.

    • traceId string

      Trace identifier for debugging purposes.

GET /api/data-governance/data-qualities/computations/{computationId}
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"
}

Retrieve field qualities for multiple datasets

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

Required

Body

  • application/json object
    Show application/json properties
    • datasets array of objects
      Required

      List of datasets to retrieve field qualities for.

      Show datasets properties
      • datasetId string
        Required

        The ID of the dataset

Responses

200

Field qualities retrieved successfully.

Body
  • application/json object

    Response containing field quality results for the requested datasets.

    Show application/json properties
    • fieldQualities array of objects
      Required

      List of field quality results per dataset.

      Show fieldQualities properties
      • fields array of objects
        Required

        List of fields and their quality metrics.

        Show fields properties
        • name string
          Required

          The name of the field.

        • type object
          Required

          Information about the type of the field.

          Show type properties
          • kind string
            Required

            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 object
          Required

          Quality metrics for the field.

          Show quality properties
          • type object
            Required

            Quality metrics based on type validation.

            Show type properties
            • empty integer
              Required

              Number of empty sample cells.

            • total integer
              Required

              Total number of cells in the sample.

            • valid integer
              Required

              Number of valid sample cells.

            • invalid integer
              Required

              Number of invalid sample cells.

          • rules array of objects
            Required

            Quality results per rule applied to this field.

            Show rules properties
            • ruleId string

              The unique identifier of the rule.

            • quality object

              Detailed quality counts for a single rule.

              Show quality properties
              • total integer
                Required

                Total number of cells evaluated by the rule.

              • valid integer
                Required

                Number of cells that passed the rule.

              • errors array of strings

                List of error identifiers encountered during rule execution.

              • invalid integer
                Required

                Number of cells that failed the rule.

              • notApplicable integer
                Required

                Number of cells where the rule does not apply.

              • notExecutable integer
                Required

                Number of cells where the rule could not be executed.

            • ruleMappingId string

              The unique identifier of the rule mapping.

          • aggregated object
            Required

            Aggregated metrics for the field.

            Show aggregated properties
            • empty integer
              Required

              Number of empty entries.

            • total integer
              Required

              Total number of entries.

            • valid integer
              Required

              Number of valid entries.

            • invalid integer
              Required

              Number of invalid entries.

      • computed object
        Required

        Metadata about the computation.

        Show computed properties
        • at string
          Required

          When the computation occurred.

        • by object
          Required

          Details about the user who computed the quality.

          Show by properties
          • id string
            Required

            Identifier of the user.

      • datasetId string
        Required

        The ID of the dataset

400

The request is in incorrect format.

Body
  • application/json object

    Standard error response wrapper.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        A short summary of the error.

      • detail string

        A human-readable explanation of the error.

    • traceId string

      Trace identifier for debugging purposes.

POST /api/data-governance/data-qualities/field-qualities/actions/filter
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"
}
]
}

Assign types to fields

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

Required

The 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 emptyValidity to fields, and/or set the dataset-level default emptyValidity.

    Show application/json properties
    • fields array of objects
      Required

      List of fields to update with their assigned types.

      Show fields properties
      • name string
        Required

        The name of the field.

      • type object

        Information about the type of the field.

        Show type properties
        • kind string
          Required

          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 string
      Required

      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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        A short summary of the error.

      • detail string

        A human-readable explanation of the error.

    • traceId string

      Trace identifier for debugging purposes.

PUT /api/data-governance/data-qualities/fields-structures
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"}'

Get global data quality

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 string
    Required

    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
    Show application/json properties
    • datasetId string
      Required

      The unique identifier of the dataset.

    • qualities array of objects
      Required
      Show qualities properties
      • quality object
        Show quality properties
        • empty integer
          Required

          Number of empty sample cells.

        • total integer
          Required

          Total number of cells in the sample.

        • valid integer
          Required

          Number of valid sample cells.

        • invalid integer
          Required

          Number of invalid sample cells.

        • updatedAt string
          Required

          Timestamp of the most recent data quality computation for this dataset and connection.

      • connectionId string
        Required

        The unique identifier of the connection.

400

The request is in incorrect format.

Body
  • application/json object

    Standard error response wrapper.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        A short summary of the error.

      • detail string

        A human-readable explanation of the error.

    • traceId string

      Trace identifier for debugging purposes.

GET /api/data-governance/data-qualities/global-results
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"
}
]
}

Get datasets data quality global results

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

Required

Body

  • application/json object

    Request containing a list of dataset IDs to filter on.

    Show application/json properties
    • datasetIds array of strings
      Required

      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.

    Show application/json properties
    • dataQualities array of objects
      Required

      List of data quality results, one per dataset and connection pair.

      Show dataQualities properties
      • error object

        Details of an execution failure.

        Show error properties
        • reason string

          A human-readable explanation of the failure.

        • errorCode string
          Required

          The error code identifying the failure reason.

        • executedAt string

          Timestamp when the execution failed.

      • status string
        Required

        Status of a data quality computation.

        Can be one of: "PROFILE_REQUESTED""PROFILE_FAILED""REQUESTED""SUBMITTED""SUCCEEDED""FAILED"

      • quality object
        Show quality properties
        • empty integer
          Required

          Number of empty sample cells.

        • total integer
          Required

          Total number of cells in the sample.

        • valid integer
          Required

          Number of valid sample cells.

        • invalid integer
          Required

          Number of invalid sample cells.

        • updatedAt string
          Required

          Timestamp of the most recent data quality computation for this dataset and connection.

      • datasetId string
        Required

        The ID of the dataset

      • connectionId string
        Required

        The ID of the connection

400

The request is in incorrect format.

Body
  • application/json object

    Standard error response wrapper.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        A short summary of the error.

      • detail string

        A human-readable explanation of the error.

    • traceId string

      Trace identifier for debugging purposes.

POST /api/data-governance/data-qualities/global-results/actions/filter
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"
}
]
}

Get rule-quality aggregation for a rule across datasets

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 ruleQualities list by datasetId in 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 ruleQualities page.

Request Body

Required

Body

  • application/json object

    Request to retrieve rule-quality outcomes for a rule across an optional dataset selection.

    Show application/json properties
    • ruleId string
      Required

      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. ruleQualityAggregate sums 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 current ruleQualities page.

    Show application/json properties
    • ruleId string
      Required

      The unique identifier of the analyzed rule.

    • ruleQualities array of objects
      Required

      Rule-quality outcomes, one entry per dataset in the current page.

      Show ruleQualities properties
      • fields array of objects
        Required

        Rule-quality outcome for each field of this dataset where the rule is mapped.

        Show fields properties
        • quality object
          Required

          Detailed quality counts for a rule applied to a single field, plus computation metadata.

          Show quality properties
          • total integer
            Required

            Total number of cells evaluated by the rule.

          • valid integer
            Required

            Number of cells that passed the rule.

          • errors array of strings

            List of error identifiers encountered during rule execution.

          • invalid integer
            Required

            Number of cells that failed the rule.

          • updatedAt string
            Required

            Timestamp of the computation this outcome comes from.

          • notApplicable integer
            Required

            Number of cells where the rule does not apply.

          • notExecutable integer
            Required

            Number of cells where the rule could not be executed.

        • fieldName string
          Required

          The name of the field the rule is mapped to.

        • ruleMappingId string
          Required

          The unique identifier of the rule mapping.

      • datasetId string
        Required

        The ID of the dataset

      • datasetAggregate object
        Required

        Summed quality counts across one or more field/rule-mapping entries.

        Show datasetAggregate properties
        • total integer
          Required

          Sum of the total cell counts across the included field/rule-mapping entries.

        • valid integer
          Required

          Sum of the numbers of cells that passed the rule across the included field/rule-mapping entries.

        • invalid integer
          Required

          Sum of the numbers of cells that failed the rule across the included field/rule-mapping entries.

        • notApplicable integer
          Required

          Sum of the numbers of cells where the rule does not apply across the included field/rule-mapping entries.

        • notExecutable integer
          Required

          Sum of the numbers of cells where the rule could not be executed across the included field/rule-mapping entries.

    • ruleQualityAggregate object
      Required

      Summed quality counts across one or more field/rule-mapping entries.

      Show ruleQualityAggregate properties
      • total integer
        Required

        Sum of the total cell counts across the included field/rule-mapping entries.

      • valid integer
        Required

        Sum of the numbers of cells that passed the rule across the included field/rule-mapping entries.

      • invalid integer
        Required

        Sum of the numbers of cells that failed the rule across the included field/rule-mapping entries.

      • notApplicable integer
        Required

        Sum of the numbers of cells where the rule does not apply across the included field/rule-mapping entries.

      • notExecutable integer
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        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.

    Show application/json properties
    • errors array of objects
      Required

      List of errors that occurred.

      Show errors properties
      • code string
        Required

        The error code identifying the type of error.

      • title string
        Required

        A short summary of the error.

      • detail string

        A human-readable explanation of the error.

    • traceId string

      Trace identifier for debugging purposes.

POST /api/data-governance/data-qualities/global-results/data-quality-rules/actions/filter
// 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
}
}