Data contracts
A data contract defines quality checks for a dataset in Qlik Cloud. Each check is an expectation that can be activated or deactivated. Expectations can be based on Qlik Trust Score™ dimensions, such as validity and completeness, or on data volume.
For Qlik Trust Score™ expectations, you can define an error threshold and an optional warning range. The error threshold determines when an expectation fails, while the warning range indicates when the score is approaching that threshold. For the Data volume expectation, you can define a record range that specifies the acceptable number of records in the dataset.
Use the Data contracts API to create data contracts for multiple datasets, retrieve and update expectations, activate or deactivate expectations, and delete existing contracts. You can also retrieve the latest evaluation results to check whether expectations are being met.
For more information about configuring data contracts and subscribing to notifications for expectation warnings and errors in Qlik Cloud, see Managing data contracts on Qlik Help.
Endpoints
Permanently deletes the data contract for the given dataset, along with every expectation and evaluation belonging to it. This is a hard delete: unlike deactivation, nothing is preserved and the operation cannot be undone. The schema expectation, its field expectations and all their evaluations are deleted too, whatever the schema flag.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- datasetId stringRequired
Responses
204
The data contract, its expectations, and its evaluation history were deleted, with an empty body.
400
The datasetId path parameter is malformed.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
401
User does not have valid authentication credentials.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
403
User does not have access to the resource, or the feature is not available for this tenant. DC-001: the feature is not available for this tenant (feature flag disabled). DC-004: the user lacks the 'Compute data quality' privilege. DC-007: the user can read the dataset but lacks update permission on its space.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
404
Dataset or data contract not found. DC-006: the dataset was not found, or the user has no read access to the dataset's space. DC-003: no data contract exists for the dataset.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
500
Internal Server Error.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
502
The Catalog service could not be reached to verify the dataset.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataContracts.deleteDataContractsDataset( '66a3aa9800358457159ecd12',)# qlik-cli has not implemented support for DELETE /api/data-governance/data-contracts/datasets/{datasetId} yet.curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-contracts/datasets/{datasetId}" \-X DELETE \-H "Authorization: Bearer <access_token>"Returns the list of all expectations of the global catalog, merged with the dataset's activated ones, with their current activation status, configured thresholds or bounds, latest actual value and last evaluation result. The catalog holds trust_score (8 dimensions: global, validity, completeness, accuracy, diversity, discoverability, usage, timeliness), data_profile (1 expectation: volume) and schema (1 expectation: structure, experimental). Each item has the four top-level fields category, name, status, updatedAt and exactly one category-specific details sub-object (trustScore, dataProfile or schema) holding every category-specific field. If the dataset has no data contract, the operation still returns 200 with the default, non-activated expectations. For non-activated expectations the actual value (Trust Score) or row count (volume) is fetched live while the response is built and is omitted if it cannot be retrieved.
When schema compliance is enabled for the tenant, the schema / structure expectation is listed too (experimental), with every non-deleted field of the activated schema nested under it in schema.fields (experimental), sorted by name in case-sensitive order — never as sibling items of their own: this response never has a category: field item. The schema expectation also stores the name of every field it knows, deleted ones included (fieldNames), for the drift detection of later tickets; no response exposes it.
Order, the same on every page: the top-level items, ACTIVATED ones before the others; the schema item is one of them. When schema compliance is disabled (or the flag service cannot answer), the schema entry, stored or NOT_ACTIVATED placeholder, is omitted from this response, from suggest and from lookup; a schema activated before the flag was turned off is kept, only hidden, and so are its fields, nested under it.
Pagination (experimental): at most limit items per page, in this order, which never changes from one page to the next. links.next.href leads to the next page and is null on the last one; a page that ends exactly on the last item also has next: null, so no next link ever leads to an empty page. links.prev.href leads to the previous page, which holds the limit items before the current one or fewer, and is null on the first. There is no page number: the Qlik pagination guidelines are cursor-based, so call the links as is. meta.count is the total number of top-level items over all pages, the same on every page of one pass. Only the top-level items are paged and counted: the fields nested under schema.fields are never paged nor counted, and the page that holds the schema item holds every one of its fields regardless of limit — a deliberate exception, since a cap would silently drop fields from the only API that lists them; a dataset with many fields can return 1,000 or more of them in that one schema item. When schema compliance is disabled there is no schema item, so every item comes on a single page with links.prev and links.next both null.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Path Parameters
- datasetId stringRequired
Responses
200
Expectations retrieved successfully.
- application/json object
application/json properties
- expectations array of undefinedsRequired
One expectation of the dataset. The notes below apply to every item.
category: one oftrust_score,data_profileorschema.status:ACTIVATEDmeans the expectation is enforced and being evaluated,DEACTIVATEDmeans it was previously activated but is currently disabled (explicitly turned off), andNOT_ACTIVATEDmeans it exists in the catalog but has never been activated for this dataset.activatable: forschemait is true when Catalog reports at least one non-orphan field for the dataset, false otherwise (no schema, no field, only orphan fields, or Catalog unreachable).trustScore.dimensionStatusis AVAILABLE or NOT_AVAILABLE, as recorded on the stored expectation; absent for NOT_ACTIVATED items.trustScore.thresholdandtrustScore.warningare absent for NOT_ACTIVATED.trustScore.actualValue: the current score. ACTIVATED: the score recorded by the latest evaluation (evaluations run on every incoming Trust Score event, so it is current), omitted when that evaluation is an ERROR (dimension unavailable / service failure), as an ERROR evaluation carries no real measurement. NOT_ACTIVATED and DEACTIVATED: fetched live from the Trust Score service when the response is built, once per expectation category per request, and never falling back to the stale stored value; evaluations only run while an expectation is activated, so the stored value of a DEACTIVATED expectation dates from the moment it was deactivated and drifts further from reality the longer it stays off, and a NOT_ACTIVATED expectation has no evaluation record at all (the live value lets a caller see the current score before activating). The field is always omitted rather than defaulted to 0 whenever no actual value is available (a genuine measured 0 is still reported as 0), notably when the external service is unreachable (fail-open behavior): no error is returned to the client and the rest of the response is unaffected. For an ACTIVATED item it normally agrees withlastEvaluation.actualValue; for a DEACTIVATED item they usually differ, and that is expected.dataProfile.minanddataProfile.max: ACTIVATED/DEACTIVATED: the stored bound (absent if the bound was removed). NOT_ACTIVATED: a preview of the bound activation would apply right now,ceil(actualRowCount * 0.95)formin(-5% baseline) andceil(actualRowCount * 1.05)formax(+5% baseline), present only whenactualRowCountis available and absent otherwise, so a caller can preview the default bounds before activating.dataProfile.actualRowCount: the current row count, with the same semantics astrustScore.actualValue(recorded by the latest evaluation for ACTIVATED, omitted when that evaluation is an ERROR, never 0; fetched live, once per expectation category per request, for NOT_ACTIVATED and DEACTIVATED, never falling back to the stale stored value; omitted rather than defaulted to 0 when unavailable) but taken from Catalog: evaluations run on every incoming profile event, and when Catalog is unreachable the field is omitted (fail-open behavior), with no error returned to the client and the rest of the response unaffected. For an ACTIVATED item it normally agrees withlastEvaluation.actualRowCount; for a DEACTIVATED item they usually differ, and that is expected.lastEvaluationis present for ACTIVATED/DEACTIVATED items with at least one evaluation.lastEvaluation.error: human-readable error message, present when status is ERROR.lastEvaluation.actualValue: the score recorded at evaluation time; for an ACTIVATED item it normally agrees with the top-levelactualValue, for a DEACTIVATED item they usually differ, and that is expected.lastEvaluation.expectedWarning: omitted when no warning was set.schema.fields: every non-deleted field of the schema, nested here and never as a siblingcategory: fielditem; always present,[]when the schema has no field or was never activated. Not counted bymeta.countand not paged: present in full whatever the pagelimit.
One of:- GetTrustScoreExpectationItem object
GetTrustScoreExpectationItem properties
- name stringRequired
The name of a trust score dimension.
Can be one of: "global""validity""completeness""accuracy""diversity""discoverability""usage""timeliness"
- status stringRequired
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
- category stringRequired
The expectations category.
- updatedAt string
When the expectation was last updated. Absent for NOT_ACTIVATED items.
- activatable boolean
Whether the expectation can be activated right now. Present only for non-active items (NOT_ACTIVATED and DEACTIVATED); omitted for ACTIVATED items. For trust_score expectations it is true only when the dataset has a computed Trust Score and the dimension is available, and false otherwise (quality not computed, dimension disabled, or the Trust Score service is unreachable). Always true for data_profile expectations.
- trustScore objectRequired
trustScore properties
- warning number
- threshold number
- actualValue number
The current score for this expectation. For ACTIVATED expectations this is the score recorded by the latest evaluation. For NOT_ACTIVATED and DEACTIVATED expectations it is fetched live from the Trust Score service when the response is built, because evaluations only run while an expectation is activated. Omitted when the external service is unreachable (fail-open behavior).
- lastEvaluation object
The last evaluation result. Only present when the expectation status is ACTIVATED or DEACTIVATED.
lastEvaluation properties
- error string
- status string
The outcome of an evaluation.
PASS: the measured value meets the expectation.WARN: the measured value is in the warning range — above the threshold but below the warning level.FAIL: the measured value does not meet the expectation.ERROR: the expectation could not be evaluated (for example the source value could not be resolved).Can be one of: "PASS""WARN""FAIL""ERROR"
- trigger string
What triggered the evaluation.
PROFILE_EVENT: a new data profile was computed for the dataset.TRUST_SCORE_EVENT: a new data quality (Trust Score) result was computed for the dataset.INITIALISATION: the expectation was activated.MANUAL: an on-demand evaluation requested through the evaluate endpoint.Can be one of: "PROFILE_EVENT""TRUST_SCORE_EVENT""INITIALISATION""MANUAL"
- errorCode string
Diagnostic error code, present only when status is ERROR. Provided to help troubleshooting; the example values shown are not an exhaustive list of possible codes.
- actualValue number
The score value that was recorded at evaluation time (historical snapshot). Unlike the top-level
actualValueon GetExpectationItem which is fetched live, this value reflects the score at the moment the evaluation was performed. Omitted whenstatusisERROR(an error evaluation carries no real measurement; never reported as0). - evaluatedAt string
- expectedWarning number
The warning range that was in effect when the evaluation was performed.
- expectedThreshold number
The threshold that was in effect when the evaluation was performed.
-
- dimensionStatus string
The availability status of the trust score dimension.
Can be one of: "AVAILABLE""NOT_AVAILABLE"
-
-
- GetVolumeExpectationItem object
GetVolumeExpectationItem properties
- name stringRequired
The name of a volume expectation.
Can be one of: "volume"
- status stringRequired
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
- category stringRequired
The expectations category.
- updatedAt string
When the expectation was last updated. Absent for NOT_ACTIVATED items.
- activatable boolean
Whether the expectation can be activated right now. Present only for non-active items (NOT_ACTIVATED and DEACTIVATED); omitted for ACTIVATED items. For trust_score expectations it is true only when the dataset has a computed Trust Score and the dimension is available, and false otherwise (quality not computed, dimension disabled, or the Trust Score service is unreachable). Always true for data_profile expectations.
- dataProfile objectRequired
dataProfile properties
- max integer
Upper bound (inclusive) on the row count. Omitted when the upper bound is disabled.
- min integer
Lower bound (inclusive) on the row count. Omitted when the lower bound is disabled.
- actualRowCount integer
The current row count. For ACTIVATED expectations this is the count recorded by the latest evaluation. For NOT_ACTIVATED and DEACTIVATED expectations it is fetched live from Catalog when the response is built, because evaluations only run while an expectation is activated. Omitted when Catalog is unreachable (fail-open behavior).
- lastEvaluation object
The last volume evaluation result. Present only when the expectation status is ACTIVATED or DEACTIVATED.
lastEvaluation properties
- error string
Human-readable error detail, present only when status is ERROR. A volume evaluation is ERROR when the row count cannot be retrieved; a row count outside the configured bounds is reported as FAIL, not ERROR.
- status string
The outcome of an evaluation.
PASS: the measured value meets the expectation.WARN: the measured value is in the warning range — above the threshold but below the warning level.FAIL: the measured value does not meet the expectation.ERROR: the expectation could not be evaluated (for example the source value could not be resolved).Can be one of: "PASS""WARN""FAIL""ERROR"
- trigger string
What triggered the evaluation.
PROFILE_EVENT: a new data profile was computed for the dataset.TRUST_SCORE_EVENT: a new data quality (Trust Score) result was computed for the dataset.INITIALISATION: the expectation was activated.MANUAL: an on-demand evaluation requested through the evaluate endpoint.Can be one of: "PROFILE_EVENT""TRUST_SCORE_EVENT""INITIALISATION""MANUAL"
- errorCode string
Diagnostic error code, present only when status is ERROR. The example values shown are not an exhaustive list of possible codes.
- evaluatedAt string
- expectedMax integer
The upper bound in effect when the evaluation was performed.
- expectedMin integer
The lower bound in effect when the evaluation was performed.
- actualRowCount integer
The row count recorded at evaluation time (historical snapshot).
-
-
-
-
400
The datasetId path parameter is malformed, the limit is outside 1..100, or the page cursor is not valid.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
401
User does not have valid authentication credentials.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
403
User does not have access to the resource, or the feature is not available for this tenant. DC-001: feature flag disabled. DC-004: can read the dataset but lacks the 'Compute data quality' read privilege.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
404
Dataset not found, or the caller has no read access to the dataset's space.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
500
Internal Server Error.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
502
The Catalog service could not be reached to verify the dataset.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataContracts.getDataContractsDatasetExpectations( '66a3aa9800358457159ecd12',)# qlik-cli has not implemented support for GET /api/data-governance/data-contracts/datasets/{datasetId}/expectations yet.curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-contracts/datasets/{datasetId}/expectations" \-H "Authorization: Bearer <access_token>"Example Response
{ "expectations": [ { "name": "validity", "status": "ACTIVATED", "category": "string", "updatedAt": "2024-01-15T10:30:00Z", "activatable": true, "trustScore": { "warning": 90, "threshold": 85, "actualValue": 85.1, "lastEvaluation": { "error": "Service unreachable", "status": "PASS", "trigger": "TRUST_SCORE_EVENT", "errorCode": "DCI-001", "actualValue": 85, "evaluatedAt": "2018-03-20T09:12:28Z", "expectedWarning": 90, "expectedThreshold": 85 }, "dimensionStatus": "AVAILABLE" } } ]}Updates, activates or deactivates the dataset's expectations in a single call. The request body groups update items by category key (trustScore, dataProfile, schema, field); items are processed independently (partial success): valid items are applied, failures are reported per item, and the response is 200. Activating at least one expectation creates the data contract when none exists. schema (structure) and field items are experimental and processed only while schema compliance is enabled for the tenant. Activation, re-evaluation and per-category rules are on UpdateExpectationsByCategory and its item schemas.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Path Parameters
- datasetId stringRequired
Request Body
Required- application/json object
application/json properties
- expectations objectRequired
Object whose keys are category identifiers in camelCase (e.g.
trustScoremaps to thetrust_scorecategory), each containing an array of updates. Unknown keys are silently ignored.nameis matched case-insensitively fortrustScore,dataProfileandschema(e.g.VAliditymatchesvalidity), and the responsenameis always the canonical stored name (e.g.validity; a per-item error result may carry the name as sent). Afieldname is matched exactly and case-sensitively:Cityandcityare two fields. Eachstatusaccepts only ACTIVATED and DEACTIVATED, the lifecycle status of the expectation. Partial success: valid items are applied and invalid ones are reported per item. When no data contract exists, a batch with at least one activation of a NOT_ACTIVATED expectation creates (upserts) the contract instead of returning DC-008; a batch with nostatus: ACTIVATEDitem is rejected with 400 DC-008. A contract that exists but is not yet activated is activated in place before the batch is processed. For Trust Score items, threshold and warning must be within 0-100 and warning, when set, strictly greater than threshold. Activation. Routing depends only on the requested target status: any item carryingstatus: ACTIVATEDgoes through the full activation pipeline, whatever the current status (NOT_ACTIVATED or DEACTIVATED), instead of returning a per-item error, so a caller can activate and update expectations in a single request. First-time activation: if no threshold is provided, it is bootstrapped from the current actual value returned by the external service; a provided threshold (and optionally a warning) is used directly. Reactivation (DEACTIVATED to ACTIVATED) applies the same partial-override semantics. Trust Score: athresholdorwarningin the request is applied; an absent one keeps the stored value, and an explicitnullwarning clears it. Data Profile: aminormaxin the request is applied; an absent one keeps the stored value, and an explicit removal clears it. In both cases the external service (Trust Score service / Catalog dataset row count) is called for the current live value, and the evaluation is recorded with triggerMANUALagainst that value and the resulting threshold/warning or bounds. Result items for activated expectations use the sameupdateStatus: SUCCESS/ERRORshape as regular update results. Trust Score activation failures. A Trust Score activation item is rejected withupdateStatus: ERROR, never SUCCESS, regardless of any provided threshold, and no expectation and no evaluation are persisted for it (a failed reactivation leaves the existing expectation DEACTIVATED); the HTTP response is still 200 and other items are unaffected.DCI-002: the Trust Score service is unreachable (transient, retryable).DCI-010: no Trust Score has ever been computed for the dataset (profiling / Data Quality never ran; not retryable until quality is computed).DCI-001: the dataset has a computed Trust Score but this specific dimension is turned off in the Trust Score settings (the most common cause of a non-GLOBAL activation failure); activation or reactivation always requires the dimension to be available, and an explicit threshold does not bypass this check. Re-evaluation. A re-evaluation using theactualValueof the most recent evaluation is triggered whenthresholdorwarningchanges and the expectation is (or becomes) ACTIVATED, and whenstatuschanges from DEACTIVATED to ACTIVATED even if threshold/warning remain unchanged. An expectation that ends up DEACTIVATED is not re-evaluated automatically, although a manual evaluation via the evaluate API can still be triggered. When a re-evaluation fails,lastEvaluation.statusis ERROR and thelastEvaluationblock carries botherror(human-readable message) anderrorCode(machine-readable DCI-NNN code).expectations properties
- trustScore array of objects
Array of trust score expectation update items. Must not be empty if present.
trustScore properties
- name stringRequired
The name of the trust score dimension. One of: global, validity, completeness, accuracy, diversity, discoverability, usage, timeliness. Matched case-insensitively. Unknown names produce a per-item error in the response.
- status string
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
- warning number
New warning range value (0-100 inclusive). Must be strictly greater than the effective threshold. Absent means no change. Set to null to remove.
- threshold number
New failure threshold value (0-100 inclusive).
-
- dataProfile array of objects
Array of data profile (volume) expectation update items. Must not be empty if present.
dataProfile properties
- max integer
New upper bound (inclusive). Absent = unchanged, null = remove the bound, value = set.
- min integer
New lower bound (inclusive). Absent = unchanged, null = remove the bound, value = set.
- name stringRequired
The name of the volume expectation. Currently only "volume" is supported (case-insensitive). Unknown names produce per-item errors (not 400).
- status string
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
-
-
-
Responses
200
Per-item results are returned. Individual items may have succeeded or failed. Per-item error codes (code, with updateStatus: ERROR):
- DCI-001: activation or reactivation of an unavailable Trust Score dimension; activation or reactivation of a
schemawhen Catalog reports no non-orphan field (Dataset schema not available). - DCI-002: Trust Score service unavailable on activation.
- DCI-003: unknown expectation name; a
schemaorfielditem while the schema flag is OFF; an update of an expectation that was never activated; afielditem while the schema expectation is not ACTIVATED; afielditem withoutfieldStatuson a deleted field. - DCI-009: Catalog service unavailable on a
dataProfileorschemaactivation or reactivation, or on afieldchange that needs an evaluation (change on an activated field, reactivation); the field is left unchanged. - DCI-010: no Trust Score computed for the dataset on activation.
- application/json object
application/json properties
- expectations objectRequired
expectations properties
- trustScore array of objects
trustScore properties
- code string
Diagnostic error code for the failure (only present when updateStatus is ERROR). The example values shown are not an exhaustive list of possible codes.
- name stringRequired
The name of the expectation. For trust score items, one of: global, validity, completeness, accuracy, diversity, discoverability, usage, timeliness. May also contain the raw input name for per-item error responses.
- reason string
The reason for failure (only present when updateStatus is ERROR).
- status string
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
- warning number
The current warning range (only present when updateStatus is SUCCESS).
- category string
The expectation category (only present when updateStatus is SUCCESS).
- threshold number
The current threshold (only present when updateStatus is SUCCESS).
- updatedAt string
When the expectation was last updated (only present when updateStatus is SUCCESS).
- updateStatus stringRequired
Can be one of: "SUCCESS""ERROR"
- lastEvaluation object
The last evaluation result (only present when updateStatus is SUCCESS).
lastEvaluation properties
- error string
- status string
The outcome of an evaluation.
PASS: the measured value meets the expectation.WARN: the measured value is in the warning range — above the threshold but below the warning level.FAIL: the measured value does not meet the expectation.ERROR: the expectation could not be evaluated (for example the source value could not be resolved).Can be one of: "PASS""WARN""FAIL""ERROR"
- trigger string
What triggered the evaluation.
PROFILE_EVENT: a new data profile was computed for the dataset.TRUST_SCORE_EVENT: a new data quality (Trust Score) result was computed for the dataset.INITIALISATION: the expectation was activated.MANUAL: an on-demand evaluation requested through the evaluate endpoint.Can be one of: "PROFILE_EVENT""TRUST_SCORE_EVENT""INITIALISATION""MANUAL"
- errorCode string
Diagnostic error code, present only when status is ERROR. Provided to help troubleshooting; the example values shown are not an exhaustive list of possible codes.
- actualValue number
The score recorded at evaluation time. Omitted when
statusisERROR(an error evaluation carries no real measurement; never reported as0). - evaluatedAt string
- expectedWarning number
- expectedThreshold number
-
- dimensionStatus string
The availability status of the trust score dimension.
Can be one of: "AVAILABLE""NOT_AVAILABLE"
-
- dataProfile array of objects
dataProfile properties
- max integer
The current upper bound (only present when updateStatus is SUCCESS).
- min integer
The current lower bound (only present when updateStatus is SUCCESS).
- code string
Diagnostic error code for the failure (only present when updateStatus is ERROR). The example values shown are not an exhaustive list of possible codes.
- name stringRequired
The name of the volume expectation. Currently only "volume" is supported.
- reason string
The reason for failure (only present when updateStatus is ERROR).
- status string
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
- category string
The expectation category (only present when updateStatus is SUCCESS).
- updatedAt string
When the expectation was last updated (only present when updateStatus is SUCCESS).
- updateStatus stringRequired
Can be one of: "SUCCESS""ERROR"
- lastEvaluation object
The last volume evaluation result (only present when updateStatus is SUCCESS).
lastEvaluation properties
- error string
Human-readable error detail, present only when status is ERROR. A volume evaluation is ERROR when the row count cannot be retrieved ; a row count outside the configured bounds is reported as FAIL, not ERROR.
- status string
The outcome of an evaluation.
PASS: the measured value meets the expectation.WARN: the measured value is in the warning range — above the threshold but below the warning level.FAIL: the measured value does not meet the expectation.ERROR: the expectation could not be evaluated (for example the source value could not be resolved).Can be one of: "PASS""WARN""FAIL""ERROR"
- trigger string
What triggered the evaluation.
PROFILE_EVENT: a new data profile was computed for the dataset.TRUST_SCORE_EVENT: a new data quality (Trust Score) result was computed for the dataset.INITIALISATION: the expectation was activated.MANUAL: an on-demand evaluation requested through the evaluate endpoint.Can be one of: "PROFILE_EVENT""TRUST_SCORE_EVENT""INITIALISATION""MANUAL"
- errorCode string
Diagnostic error code, present only when status is ERROR . The example values shown are not an exhaustive list of possible codes.
- evaluatedAt string
- expectedMax integer
- expectedMin integer
- actualRowCount integer
-
-
-
-
400
Request-level validation failure. DC-002: the request is rejected when the expectations object is absent; none of trustScore, dataProfile, schema or field contains any item; a name is duplicated within a category array (compared case-insensitively for trustScore, dataProfile and schema, exactly for field: City twice is rejected, City and city are both processed); an item has no updatable field besides name (for schema, status or additionalFieldsPolicy, detail At least one updatable field is required for expectation: structure; for field, status or fieldStatus); only unknown category keys are present (no trustScore, dataProfile, schema or field); additionalFieldsPolicy is outside its enum; fieldStatus is other than EXPECTED, OPTIONAL, FORBIDDEN or DELETED; the JSON body is malformed. DC-008: no data contract exists for the dataset and the batch contains no item with status: ACTIVATED; include at least one ACTIVATED item to create the contract automatically.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
401
User does not have valid authentication credentials.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
403
User does not have access to the resource, or the feature is not available for this tenant. DC-001: the feature is not available for this tenant (feature flag disabled). DC-004: the user lacks the 'Compute data quality' privilege (checked independently of the dataset's space/owner, on every request regardless of what it contains). DC-007: the user can read the dataset but lacks update permission on its space.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
404
Dataset not found (or the user has no read access to the dataset's space).
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
500
Internal Server Error.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
502
The Catalog service could not be reached to verify the dataset.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataContracts.patchDataContractsDatasetExpectations( '66a3aa9800358457159ecd12', { expectations: { dataProfile: [ { max: 10500, min: 9500, name: 'volume', status: 'ACTIVATED', }, ], trustScore: [ { name: 'global', status: 'ACTIVATED', threshold: 85, warning: 90, }, ], }, },)# qlik-cli has not implemented support for PATCH /api/data-governance/data-contracts/datasets/{datasetId}/expectations yet.curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-contracts/datasets/{datasetId}/expectations" \-X PATCH \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"expectations":{"trustScore":[{"name":"global","status":"ACTIVATED","warning":90,"threshold":85}],"dataProfile":[{"max":10500,"min":9500,"name":"volume","status":"ACTIVATED"}]}}'Example Response
{ "expectations": { "trustScore": [ { "code": "DCI-001", "name": "string", "reason": "Unknown trust score dimension: Foo", "status": "ACTIVATED", "warning": 90, "category": "trust_score", "threshold": 85, "updatedAt": "2026-05-13T10:00:00Z", "updateStatus": "SUCCESS", "lastEvaluation": { "error": "Service unreachable", "status": "PASS", "trigger": "TRUST_SCORE_EVENT", "errorCode": "DCI-001", "actualValue": 92, "evaluatedAt": "2026-05-13T10:00:00Z", "expectedWarning": 90, "expectedThreshold": 85 }, "dimensionStatus": "AVAILABLE" } ], "dataProfile": [ { "max": 10500, "min": 9500, "code": "DCI-008", "name": "string", "reason": "Invalid volume bounds: min must be less than or equal to max.", "status": "ACTIVATED", "category": "data_profile", "updatedAt": "2026-07-15T10:00:00Z", "updateStatus": "SUCCESS", "lastEvaluation": { "error": "string", "status": "PASS", "trigger": "TRUST_SCORE_EVENT", "errorCode": "DCI-005", "evaluatedAt": "2026-07-15T10:00:00Z", "expectedMax": 10500, "expectedMin": 9500, "actualRowCount": 10000 } } ] }}Creates a data contract for each listed dataset ID, notably to apply a contract to every dataset of a data product at once. The caller's "Compute data quality" write privilege is checked once for the whole request, before any dataset is processed, so a caller lacking it is rejected upfront with HTTP 403 rather than failing every entry individually. Each dataset is then processed independently and concurrently: a failure on one (no write permission on its space, dataset not found, or a contract already existing) does not block the others. Unlike PATCH /expectations, an existing contract is never overwritten: it is reported as a failure. The dataset-level write permission, which depends on each dataset's space/owner, is still checked per dataset. The request is capped at 100 datasets; a larger batch is rejected upfront with HTTP 400, before any contract is created.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Request Body
Required- application/json object
application/json properties
- datasets array of objectsRequired
The batch of datasets to create contracts for. 1 to 100 entries, no duplicate
datasetId.datasets properties
- datasetId stringRequired
Identifier of the dataset the data contract must be created for.
- expectations objectRequired
Object whose keys are category identifiers in camelCase (e.g.
trustScoremaps to thetrust_scorecategory), each containing an array of updates. Unknown keys are silently ignored.nameis matched case-insensitively fortrustScore,dataProfileandschema(e.g.VAliditymatchesvalidity), and the responsenameis always the canonical stored name (e.g.validity; a per-item error result may carry the name as sent). Afieldname is matched exactly and case-sensitively:Cityandcityare two fields. Eachstatusaccepts only ACTIVATED and DEACTIVATED, the lifecycle status of the expectation. Partial success: valid items are applied and invalid ones are reported per item. When no data contract exists, a batch with at least one activation of a NOT_ACTIVATED expectation creates (upserts) the contract instead of returning DC-008; a batch with nostatus: ACTIVATEDitem is rejected with 400 DC-008. A contract that exists but is not yet activated is activated in place before the batch is processed. For Trust Score items, threshold and warning must be within 0-100 and warning, when set, strictly greater than threshold. Activation. Routing depends only on the requested target status: any item carryingstatus: ACTIVATEDgoes through the full activation pipeline, whatever the current status (NOT_ACTIVATED or DEACTIVATED), instead of returning a per-item error, so a caller can activate and update expectations in a single request. First-time activation: if no threshold is provided, it is bootstrapped from the current actual value returned by the external service; a provided threshold (and optionally a warning) is used directly. Reactivation (DEACTIVATED to ACTIVATED) applies the same partial-override semantics. Trust Score: athresholdorwarningin the request is applied; an absent one keeps the stored value, and an explicitnullwarning clears it. Data Profile: aminormaxin the request is applied; an absent one keeps the stored value, and an explicit removal clears it. In both cases the external service (Trust Score service / Catalog dataset row count) is called for the current live value, and the evaluation is recorded with triggerMANUALagainst that value and the resulting threshold/warning or bounds. Result items for activated expectations use the sameupdateStatus: SUCCESS/ERRORshape as regular update results. Trust Score activation failures. A Trust Score activation item is rejected withupdateStatus: ERROR, never SUCCESS, regardless of any provided threshold, and no expectation and no evaluation are persisted for it (a failed reactivation leaves the existing expectation DEACTIVATED); the HTTP response is still 200 and other items are unaffected.DCI-002: the Trust Score service is unreachable (transient, retryable).DCI-010: no Trust Score has ever been computed for the dataset (profiling / Data Quality never ran; not retryable until quality is computed).DCI-001: the dataset has a computed Trust Score but this specific dimension is turned off in the Trust Score settings (the most common cause of a non-GLOBAL activation failure); activation or reactivation always requires the dimension to be available, and an explicit threshold does not bypass this check. Re-evaluation. A re-evaluation using theactualValueof the most recent evaluation is triggered whenthresholdorwarningchanges and the expectation is (or becomes) ACTIVATED, and whenstatuschanges from DEACTIVATED to ACTIVATED even if threshold/warning remain unchanged. An expectation that ends up DEACTIVATED is not re-evaluated automatically, although a manual evaluation via the evaluate API can still be triggered. When a re-evaluation fails,lastEvaluation.statusis ERROR and thelastEvaluationblock carries botherror(human-readable message) anderrorCode(machine-readable DCI-NNN code).expectations properties
- trustScore array of objects
Array of trust score expectation update items. Must not be empty if present.
trustScore properties
- name stringRequired
The name of the trust score dimension. One of: global, validity, completeness, accuracy, diversity, discoverability, usage, timeliness. Matched case-insensitively. Unknown names produce a per-item error in the response.
- status string
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
- warning number
New warning range value (0-100 inclusive). Must be strictly greater than the effective threshold. Absent means no change. Set to null to remove.
- threshold number
New failure threshold value (0-100 inclusive).
-
- dataProfile array of objects
Array of data profile (volume) expectation update items. Must not be empty if present.
dataProfile properties
- max integer
New upper bound (inclusive). Absent = unchanged, null = remove the bound, value = set.
- min integer
New lower bound (inclusive). Absent = unchanged, null = remove the bound, value = set.
- name stringRequired
The name of the volume expectation. Currently only "volume" is supported (case-insensitive). Unknown names produce per-item errors (not 400).
- status string
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
-
-
-
-
Responses
200
Per-dataset results are returned. Individual datasets may have succeeded or failed. Per-dataset failure codes (code):
- DCI-011: dataset not found, or user has no read access to it. The user cannot even see the dataset, so its existence is not revealed.
- DCI-012: user can read the dataset but lacks write/update permission on it. The caller already knows the dataset exists. Only for the dataset-scoped part of the check; a missing 'Compute data quality' privilege is rejected upfront for the whole request (DC-004) instead.
- DCI-013: a data contract already exists for the dataset. The existing contract is left untouched.
- DCI-014: no item with
status: ACTIVATEDin the dataset's expectations (the per-item counterpart of DC-008, so that it does not block other datasets). - DCI-015: no processable expectation in the dataset entry: every requested expectation name was unknown.
- DCI-016: no expectation could be activated (every requested expectation failed, e.g. the Trust Score is not yet computed). No contract is persisted, so the call can be retried once the underlying indicators exist.
- DCI-009: Catalog service unavailable.
- DCI-005: unexpected error.
- application/json object
application/json properties
- datasets array of objectsRequired
datasets properties
- code string
Diagnostic error code for the failure (only present when updateStatus is ERROR). The example values shown are not an exhaustive list of possible codes.
- reason string
The reason for failure (only present when updateStatus is ERROR).
- datasetId stringRequired
- expectations object
Per-expectation results (only present when updateStatus is SUCCESS).
expectations properties
- trustScore array of objects
trustScore properties
- code string
Diagnostic error code for the failure (only present when updateStatus is ERROR). The example values shown are not an exhaustive list of possible codes.
- name stringRequired
The name of the expectation. For trust score items, one of: global, validity, completeness, accuracy, diversity, discoverability, usage, timeliness. May also contain the raw input name for per-item error responses.
- reason string
The reason for failure (only present when updateStatus is ERROR).
- status string
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
- warning number
The current warning range (only present when updateStatus is SUCCESS).
- category string
The expectation category (only present when updateStatus is SUCCESS).
- threshold number
The current threshold (only present when updateStatus is SUCCESS).
- updatedAt string
When the expectation was last updated (only present when updateStatus is SUCCESS).
- updateStatus stringRequired
Can be one of: "SUCCESS""ERROR"
- lastEvaluation object
The last evaluation result (only present when updateStatus is SUCCESS).
lastEvaluation properties
- error string
- status string
The outcome of an evaluation.
PASS: the measured value meets the expectation.WARN: the measured value is in the warning range — above the threshold but below the warning level.FAIL: the measured value does not meet the expectation.ERROR: the expectation could not be evaluated (for example the source value could not be resolved).Can be one of: "PASS""WARN""FAIL""ERROR"
- trigger string
What triggered the evaluation.
PROFILE_EVENT: a new data profile was computed for the dataset.TRUST_SCORE_EVENT: a new data quality (Trust Score) result was computed for the dataset.INITIALISATION: the expectation was activated.MANUAL: an on-demand evaluation requested through the evaluate endpoint.Can be one of: "PROFILE_EVENT""TRUST_SCORE_EVENT""INITIALISATION""MANUAL"
- errorCode string
Diagnostic error code, present only when status is ERROR. Provided to help troubleshooting; the example values shown are not an exhaustive list of possible codes.
- actualValue number
The score recorded at evaluation time. Omitted when
statusisERROR(an error evaluation carries no real measurement; never reported as0). - evaluatedAt string
- expectedWarning number
- expectedThreshold number
-
- dimensionStatus string
The availability status of the trust score dimension.
Can be one of: "AVAILABLE""NOT_AVAILABLE"
-
- dataProfile array of objects
dataProfile properties
- max integer
The current upper bound (only present when updateStatus is SUCCESS).
- min integer
The current lower bound (only present when updateStatus is SUCCESS).
- code string
Diagnostic error code for the failure (only present when updateStatus is ERROR). The example values shown are not an exhaustive list of possible codes.
- name stringRequired
The name of the volume expectation. Currently only "volume" is supported.
- reason string
The reason for failure (only present when updateStatus is ERROR).
- status string
Activation status of an expectation.
ACTIVATEDmeans the expectation is enforced,DEACTIVATEDmeans it was explicitly turned off, andNOT_ACTIVATEDmeans it has never been activated.Can be one of: "ACTIVATED""DEACTIVATED""NOT_ACTIVATED"
- category string
The expectation category (only present when updateStatus is SUCCESS).
- updatedAt string
When the expectation was last updated (only present when updateStatus is SUCCESS).
- updateStatus stringRequired
Can be one of: "SUCCESS""ERROR"
- lastEvaluation object
The last volume evaluation result (only present when updateStatus is SUCCESS).
lastEvaluation properties
- error string
Human-readable error detail, present only when status is ERROR. A volume evaluation is ERROR when the row count cannot be retrieved ; a row count outside the configured bounds is reported as FAIL, not ERROR.
- status string
The outcome of an evaluation.
PASS: the measured value meets the expectation.WARN: the measured value is in the warning range — above the threshold but below the warning level.FAIL: the measured value does not meet the expectation.ERROR: the expectation could not be evaluated (for example the source value could not be resolved).Can be one of: "PASS""WARN""FAIL""ERROR"
- trigger string
What triggered the evaluation.
PROFILE_EVENT: a new data profile was computed for the dataset.TRUST_SCORE_EVENT: a new data quality (Trust Score) result was computed for the dataset.INITIALISATION: the expectation was activated.MANUAL: an on-demand evaluation requested through the evaluate endpoint.Can be one of: "PROFILE_EVENT""TRUST_SCORE_EVENT""INITIALISATION""MANUAL"
- errorCode string
Diagnostic error code, present only when status is ERROR . The example values shown are not an exhaustive list of possible codes.
- evaluatedAt string
- expectedMax integer
- expectedMin integer
- actualRowCount integer
-
-
-
- updateStatus stringRequired
Can be one of: "SUCCESS""ERROR"
-
-
400
Request-level validation failure. No contract is created for any dataset. DC-002: datasets empty or has more than 100 entries; duplicate datasetId; malformed expectations for one of the entries.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
401
User does not have valid authentication credentials.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
403
The feature is not available for this tenant, or the caller lacks the "Compute data quality" privilege.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
500
Internal Server Error.
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- meta object
Optional additional context for the error. Null when none is provided.
- title string
- detail string
- status string
-
- traceId string
Identifier of the request trace. Quote it when reporting a problem so the request can be located in the logs.
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.dataGovernance.dataContracts.createDataContractsDatasets( { datasets: [ { datasetId: '66a3aa9800358457159ecd12', expectations: { dataProfile: [ { max: 10500, min: 9500, name: 'volume', status: 'ACTIVATED', }, ], trustScore: [ { name: 'global', status: 'ACTIVATED', threshold: 85, warning: 90, }, ], }, }, ], },)# qlik-cli has not implemented support for POST /api/data-governance/data-contracts/datasets/actions/create yet.curl "https://{tenant}.{region}.qlikcloud.com/api/data-governance/data-contracts/datasets/actions/create" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"datasets":[{"datasetId":"66a3aa9800358457159ecd12","expectations":{"trustScore":[{"name":"global","status":"ACTIVATED","warning":90,"threshold":85}],"dataProfile":[{"max":10500,"min":9500,"name":"volume","status":"ACTIVATED"}]}}]}'Example Response
{ "datasets": [ { "code": "DCI-013", "reason": "Data contract already exists for dataset: 66a3aa9800358457159ecd12", "datasetId": "66a3aa9800358457159ecd12", "expectations": { "trustScore": [ { "code": "DCI-001", "name": "string", "reason": "Unknown trust score dimension: Foo", "status": "ACTIVATED", "warning": 90, "category": "trust_score", "threshold": 85, "updatedAt": "2026-05-13T10:00:00Z", "updateStatus": "SUCCESS", "lastEvaluation": { "error": "Service unreachable", "status": "PASS", "trigger": "TRUST_SCORE_EVENT", "errorCode": "DCI-001", "actualValue": 92, "evaluatedAt": "2026-05-13T10:00:00Z", "expectedWarning": 90, "expectedThreshold": 85 }, "dimensionStatus": "AVAILABLE" } ], "dataProfile": [ { "max": 10500, "min": 9500, "code": "DCI-008", "name": "string", "reason": "Invalid volume bounds: min must be less than or equal to max.", "status": "ACTIVATED", "category": "data_profile", "updatedAt": "2026-07-15T10:00:00Z", "updateStatus": "SUCCESS", "lastEvaluation": { "error": "string", "status": "PASS", "trigger": "TRUST_SCORE_EVENT", "errorCode": "DCI-005", "evaluatedAt": "2026-07-15T10:00:00Z", "expectedMax": 10500, "expectedMin": 9500, "actualRowCount": 10000 } } ] }, "updateStatus": "SUCCESS" } ]}