Create rule
Create a new rule.
The rule is created as a draft (draftType: NEW) and can be incomplete: finish it via updates, then publish it to make it live.
If you send the read-only fields urn and draftType, they are ignored. The urn is assigned automatically and draftType is set to NEW.
Store each input group, input, condition, parameter, and variable under a temporary key that you choose, such as new_email.
A successful request returns 201 Created with the created rule draft. Each new sub-entity is returned under its server-assigned ID, with your temporary key in correlationId. Save the urn of the rule for publishing and assigning it to monitors.
To create many rules at once as published versions, use Create rules in batch instead.
Request
- Base URLhttps://your-environment.ataccama.one/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"defaultDqThreshold": {
"severity": "WARNING",
"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"
}
}
}Response
The created rule as the draft (draftType=NEW) version. Each sub-entity is returned under its server-assigned id (the UUID part of its urn), with the temporary new_<id> key from the request returned as correlationId.
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.