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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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
  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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
  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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 to one or more fields in a dataset. This is a partial update: only the fields included in the request are modified; any field not included in the request keeps its current assigned structure 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.

  • application/json object
    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
        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).

    • datasetId string
      Required

      The ID of the dataset

Responses

204

The requested field types were assigned successfully. The response body is empty.

400

The request is in incorrect format.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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
// qlik-api has not implemented support for `PUT /api/data-governance/data-qualities/fields-structures` yet.
// In the meantime, you can use fetch like this:
const response = await fetch(
'/api/data-governance/data-qualities/fields-structures',
{
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
fields: [
{
name: 'customer_id',
type: {
kind: 'STANDARD',
name: 'customer_id',
precision: 'timestamp-millis',
semanticTypeId:
'9996fbb942b02a6987534999',
},
},
],
datasetId: '669144f5aa2d642638ef1dd0',
}),
},
)
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"}}],"datasetId":"669144f5aa2d642638ef1dd0"}'

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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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
  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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"
}
]
}