Get rule
Retrieve a rule by URN.
By default, the endpoint returns the latest published version; use ?version=DRAFT to fetch the current draft.
A fully published rule with nothing pending answers a DRAFT read with 404 Not Found, and a rule that exists only as a draft answers a default (published) read with 404 Not Found.
The response includes the URN of each rule input attribute (inputGroups.{id}.inputs.{id}.urn), which you need when mapping the rule to catalog item attributes in a DQ monitor. That URN is the ruleAttributeUrn of the mapping.
Request
- Base URLhttps://your-environment.ataccama.one/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
A URN identifying the data quality rule resource in the Data Quality API.
Format: urn:ata:{tenant}:data-quality:rule:{uuid}
Example: urn:ata:acme-corp:data-quality:rule:123e4567-e89b-12d3-a456-426614174000.
Rule URN.
Query parameters
@ExtensibleEnum Which version of the rule to retrieve: PUBLISHED or DRAFT.
An entity can have multiple versions at the same time. Defaults to the latest published version.
If the rule has no current draft, a DRAFT request returns 404 Not Found. The type of the draft is returned in the draftType field.
Response
A rule object. Sub-entities are keyed by their id, the UUID part of their urn.
Example response
{
"draftType": "NEW",
"defaultDqThreshold": {
"severity": "WARNING",
"urn": "urn:ata:acme-corp:data-quality:dq-threshold:123e4567-e89b-12d3-a456-426614174000",
"correlationId": "new_email"
},
"stewardship": {
"groupUrn": "urn:ata:acme-corp:iam:group:123e4567-e89b-12d3-a456-426614174000"
},
"implementation": {
"ruleType": "SINGLE_TABLE",
"dqDimensionUrn": "urn:ata:acme-corp:data-quality:dq-dimension:123e4567-e89b-12d3-a456-426614174000",
"fallback": {
"resultUrn": "urn:ata:acme-corp:data-quality:dq-dimension-result:123e4567-e89b-12d3-a456-426614174000"
}
},
"urn": "urn:ata:acme-corp:data-quality:rule:123e4567-e89b-12d3-a456-426614174000"
}Changes
No recorded changes to this operation across all 1 revision of this API.