API Reference > Manage data quality scores > Upload data quality scores
  

Upload data quality scores

Upload one or more data quality scores to Data Governance and Catalog. When you upload a score, specify the data quality rule occurrence for which the scores apply. After you upload the scores, you can see the new scores in Data Governance and Catalog by opening the asset that is related to the rule occurrence you specified.
Note:
Effective in the April 2026 release, the usage of this API endpoint is deprecated.
To upload data quality scores to data quality rule occurrences, Informatica recommends that you use the following endpoint:
For more information about the new endpoint, see .
Informatica will continue to support the existing endpoint until the July 2026 release.
The following table provides the HTTP method and endpoint for the API call:
Method
Endpoint
PATCH
<baseApiUrl>/ccgf-ruleautomation/api/v1/dataQuality/publishScore?refBy=INTERNAL
The <baseApiUrl> differs for each pod. The following table displays the base API URL for some PODs:
POD Name
Base API URL
AP SouthEast 1 (APSE1)
https://cdgc-api.dm-ap.informaticacloud.com/
Canada Central 1 (CAC1)
https://cdgc-api.dm-na.informaticacloud.com/
EM West 1 (EMW1)
https://cdgc-api.dm-em.informaticacloud.com/
NA West 1 (USW1)
https://cdgc-api.dm-us.informaticacloud.com/
UK (UK1)
https://cdgc-api.dm-uk.informaticacloud.com/
If you update data quality scores through API, the updated data quality scores can take up to one hour to reflect in the Total Runs Table of the Score tab of a rule occurrence.

Request body

Use the request body to upload one or more data quality scores of an asset.
In the body of request, specify the asset ID and the data quality scores in the following format:
{
"scores": [
{
"assetId": "e8b757ba-63ca-41a6-b79d-00c66fa176a0",
"dqscore": {
"facts": {
"com.infa.ccgf.models.governance.value": 94,
"com.infa.ccgf.models.governance.totalCount": 20000,
"com.infa.ccgf.models.governance.exception": 764,
"com.infa.ccgf.models.governance.scannedTime": "2022-02-09T10:10:12.441Z"
}
}
}
]
}
The following table describes the parameters that you can specify in the body of the request:
Parameter
Description
assetId
Required. Internal reference identifier of the data quality rule occurrence for which you want to upload the scores.
You can determine the identifier by looking at the URL in the browser window when you open the rule occurrence. The identifier is the value between the asset/ and ? parameters. Consider the following example:
  • - URL: <domain>/asset/22ea8dd9-5128-496b-a51a-f3f0e6ed2b56?type=RuleInstance&name=Rule%20Instance%20July%2009%201214
  • - Identifier: 22ea8dd9-5128-496b-a51a-f3f0e6ed2b56
facts
Required. Attribute of the data quality score.
You must enter the following values:
  • - Enter com.infa.ccgf.models.governance.value to specify the data quality score.
  • - Enter com.infa.ccgf.models.governance.exception to specify an exception score.
  • - Enter com.infa.ccgf.models.governance.scannedTime to specify the timestamp of the last rule run.
  • - Enter com.infa.ccgf.models.governance.totalCount to specify the total number of run counts.

Example request

The following example shows a PATCH request to upload two data quality scores:
PATCH https://cdgc-api.dm-us.informaticacloud.com/ccgf-ruleautomation/api/v1/dataQuality/publishScore?refBy=INTERNAL
Authorization: Bearer <jwt_token>
Content-Type: application/json
X-INFA-ORG-ID:<Org ID>
IDS-SESSION-ID: <sessionId value>

Body
{
"scores": [
{
"assetId": "e8b757ba-63ca-41a6-b79d-00c66fa176a0",
"dqscore": {
"facts": {
"com.infa.ccgf.models.governance.value": 94,
"com.infa.ccgf.models.governance.totalCount": 20000,
"com.infa.ccgf.models.governance.exception": 764,
"com.infa.ccgf.models.governance.scannedTime": "2022-02-09T10:10:12.441Z"
}
}
},
{
"assetId": "abc82672-63ca-41a6-b79d-00c66fa176a0",
"dqscore": {
"facts": {
"com.infa.ccgf.models.governance.value": 100,
"com.infa.ccgf.models.governance.totalCount": 100,
"com.infa.ccgf.models.governance.exception": 0,
"com.infa.ccgf.models.governance.scannedTime": "2022-02-09T10:10:12.441Z"
}
}
}
]
}