Publish rule
Publish the current draft, promoting it to the latest published version.
What publishing amounts to depends on the draftType:
- NEW: Create a new DQ rule (promotes the draft to the first published version).
- CHANGE: Change an existing DQ rule (promotes the draft to the latest published version).
- DELETE: Delete an existing DQ rule.
- RESURRECT: Resurrect a deleted DQ rule.
The response returns the published rule. If the rule has no current draft, the request still succeeds and returns the currently published version.
For NEW and CHANGE, the rule must meet the following requirements; otherwise, the publish request fails with a 400 error listing what is missing:
- name is set.
- implementation is set, contains at least one condition, and every condition has a non-empty expression.
- inputGroups contains at least one group with joined: false.
DELETE and RESURRECT drafts are created in the web application only; the API never creates them, but you can retrieve them (?version=DRAFT) and publish them like any other draft. To delete a rule through the API, use Delete rule instead: it deletes the rule immediately, without a draft.
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.
Response
The published rule. 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.