Data Quality Rules
Returns data quality rules matching the given search criteria. Only parameters that are specified in this request and have not null values are used for filtering. All other parameters are ignored. The returned data quality rules satisfy all constraints that are specified in this search criteria. By default a result containing 1000 data quality rules is returned.
The first result to retrieve. If not set (offset = 0), results will be retrieved starting from row 0.
0The maximum number of results to retrieve. If not set (limit = 0), the default limit will be used. The maximum allowed limit is 1000.
0Allows to limit the number of elements that will be counted. -1 will count everything and 0 will cause the count to be skipped
-1The name of the dataquality rule to search for.
The match mode used to compare name.
ANYWHEREPossible values: The field that should be used as reference for sorting.
NAMEPossible values: The order of sorting.
ASCPossible values: The paged response with found DataQualityRule information.
The total number of results.
1000The offset for the results.
10The maximum number of results to be returned.
100GET /rest/2.0/dataQualityRules HTTP/1.1
Authorization: Basic username:password
Accept: */*
The paged response with found DataQualityRule information.
{
"total": 1000,
"offset": 10,
"limit": 100,
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"name": "Test name",
"description": "Sample descripion of the resource.",
"categorizationRelationType": {
"id": "2b7f3a1a-4e50-4077-96f0-a58a395c860d",
"resourceDiscriminator": "Community"
},
"relationTrace": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"relationTraceEntries": [
{
"outBoundRoleDirection": true,
"roleDirection": true,
"relationTypeId": "123e4567-e89b-12d3-a456-426614174000",
"outBoundRelationTypeId": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"dataQualityMetrics": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"countOperation": "Sum",
"attributeType": {
"id": "2b7f3a1a-4e50-4077-96f0-a58a395c860d",
"resourceDiscriminator": "Community",
"name": "text",
"description": "This is the description of the resource"
}
}
],
"profilingEnabled": true
}
]
}Adds a new data quality rule.
The ID of the new Data Quality Rule. Should be unique within all data quality rules.
It should have a format of universally unique identifier (UUID) and should not start with00000000-0000-0000- which is a reserved prefix.
The name of the new data quality rule. Should be unique within all data quality rules.
The description of the new data quality rule.
The ID of the categorization relation type.
Indicates whether profiling statistics should be enabled for this rule.
Data quality rule successfully added.
The id of the represented object (entity).
The id of the user that created this resource.
4d250cc5-e583-4640-9874-b93d82c7a6cbThe timestamp (in UTC time standard) of the creation of this resource.
1475503010320The id of the user who modified this resource the last time.
a073ff90-e7bc-4b35-ba90-c4d475f642feThe timestamp (in UTC time standard) of the last modification of this resource.
1476703764163Whether this is a system resource or not.
The type of the resource, e.g. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance, ...]. This property is deprecated and will be removed in the future. To stay backwards compatible while still allowing new types of resources to be introduced, a resource discriminator property (of type String) has been added to the subtypes of Resource where it adds value, e.g. assignedResourceDiscriminator on AssignedResource, or attributeDiscriminator on Attribute. A discriminator is only added on subtypes whose declared return type can represent more than one kind of resource; it is omitted where the return type can only ever be a single kind, as it would then always hold the same value and carry no additional information. For new types of resource that didn't exist before this change, the resourceType will be BaseDataType.
The name of the resource.
Test nameThe description of the resource.
Sample descripion of the resource.Indicates whether profiling statistics are enabled for this rule.
A data quality rule with the given ID already exists
POST /rest/2.0/dataQualityRules HTTP/1.1
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 383
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"categorizationRelationTypeId": "123e4567-e89b-12d3-a456-426614174000",
"profilingEnabled": true,
"dataQualityMetrics": [
{
"countOperation": "Sum",
"attributeTypeId": "123e4567-e89b-12d3-a456-426614174000"
}
],
"relationTraceEntries": [
{
"roleDirection": true,
"relationTypeId": "123e4567-e89b-12d3-a456-426614174000"
}
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"name": "Test name",
"description": "Sample descripion of the resource.",
"categorizationRelationType": {
"id": "2b7f3a1a-4e50-4077-96f0-a58a395c860d",
"resourceDiscriminator": "Community"
},
"relationTrace": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"relationTraceEntries": [
{
"outBoundRoleDirection": true,
"roleDirection": true,
"relationTypeId": "123e4567-e89b-12d3-a456-426614174000",
"outBoundRelationTypeId": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"dataQualityMetrics": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"countOperation": "Sum",
"attributeType": {
"id": "2b7f3a1a-4e50-4077-96f0-a58a395c860d",
"resourceDiscriminator": "Community",
"name": "text",
"description": "This is the description of the resource"
}
}
],
"profilingEnabled": true
}Returns the DataQualityRule identified by given id.
the unique identifier of the data quality rule
DataQualityRule found.
The id of the represented object (entity).
The id of the user that created this resource.
4d250cc5-e583-4640-9874-b93d82c7a6cbThe timestamp (in UTC time standard) of the creation of this resource.
1475503010320The id of the user who modified this resource the last time.
a073ff90-e7bc-4b35-ba90-c4d475f642feThe timestamp (in UTC time standard) of the last modification of this resource.
1476703764163Whether this is a system resource or not.
The type of the resource, e.g. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance, ...]. This property is deprecated and will be removed in the future. To stay backwards compatible while still allowing new types of resources to be introduced, a resource discriminator property (of type String) has been added to the subtypes of Resource where it adds value, e.g. assignedResourceDiscriminator on AssignedResource, or attributeDiscriminator on Attribute. A discriminator is only added on subtypes whose declared return type can represent more than one kind of resource; it is omitted where the return type can only ever be a single kind, as it would then always hold the same value and carry no additional information. For new types of resource that didn't exist before this change, the resourceType will be BaseDataType.
The name of the resource.
Test nameThe description of the resource.
Sample descripion of the resource.Indicates whether profiling statistics are enabled for this rule.
DataQualityRule not found.
GET /rest/2.0/dataQualityRules/{dataQualityRuleId} HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"name": "Test name",
"description": "Sample descripion of the resource.",
"categorizationRelationType": {
"id": "2b7f3a1a-4e50-4077-96f0-a58a395c860d",
"resourceDiscriminator": "Community"
},
"relationTrace": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"relationTraceEntries": [
{
"outBoundRoleDirection": true,
"roleDirection": true,
"relationTypeId": "123e4567-e89b-12d3-a456-426614174000",
"outBoundRelationTypeId": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"dataQualityMetrics": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"countOperation": "Sum",
"attributeType": {
"id": "2b7f3a1a-4e50-4077-96f0-a58a395c860d",
"resourceDiscriminator": "Community",
"name": "text",
"description": "This is the description of the resource"
}
}
],
"profilingEnabled": true
}Removes the DataQualityRule identified by the given id.
the unique identifier of the data quality rule
DataQualityRule removed.
No content
DataQualityRule not found.
DELETE /rest/2.0/dataQualityRules/{dataQualityRuleId} HTTP/1.1
Authorization: Basic username:password
Accept: */*
No content
Changes the data quality rule with the information that is present in the request. Only properties that are specified in this request and have not null values are updated. All other properties are ignored.
the unique identifier of the data quality rule
The new name for the data quality rule.
The new description for the data quality rule.
Indicates whether profiling statistics should be enabled for this rule.
The ID of the categorization relation type.
default response
The id of the represented object (entity).
The id of the user that created this resource.
4d250cc5-e583-4640-9874-b93d82c7a6cbThe timestamp (in UTC time standard) of the creation of this resource.
1475503010320The id of the user who modified this resource the last time.
a073ff90-e7bc-4b35-ba90-c4d475f642feThe timestamp (in UTC time standard) of the last modification of this resource.
1476703764163Whether this is a system resource or not.
The type of the resource, e.g. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance, ...]. This property is deprecated and will be removed in the future. To stay backwards compatible while still allowing new types of resources to be introduced, a resource discriminator property (of type String) has been added to the subtypes of Resource where it adds value, e.g. assignedResourceDiscriminator on AssignedResource, or attributeDiscriminator on Attribute. A discriminator is only added on subtypes whose declared return type can represent more than one kind of resource; it is omitted where the return type can only ever be a single kind, as it would then always hold the same value and carry no additional information. For new types of resource that didn't exist before this change, the resourceType will be BaseDataType.
The name of the resource.
Test nameThe description of the resource.
Sample descripion of the resource.Indicates whether profiling statistics are enabled for this rule.
PATCH /rest/2.0/dataQualityRules/{dataQualityRuleId} HTTP/1.1
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 339
{
"name": "text",
"description": "text",
"profilingEnabled": true,
"categorizationRelationTypeId": "123e4567-e89b-12d3-a456-426614174000",
"dataQualityMetrics": [
{
"countOperation": "Sum",
"attributeTypeId": "123e4567-e89b-12d3-a456-426614174000"
}
],
"relationTraceEntries": [
{
"roleDirection": true,
"relationTypeId": "123e4567-e89b-12d3-a456-426614174000"
}
]
}default response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"name": "Test name",
"description": "Sample descripion of the resource.",
"categorizationRelationType": {
"id": "2b7f3a1a-4e50-4077-96f0-a58a395c860d",
"resourceDiscriminator": "Community"
},
"relationTrace": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"relationTraceEntries": [
{
"outBoundRoleDirection": true,
"roleDirection": true,
"relationTypeId": "123e4567-e89b-12d3-a456-426614174000",
"outBoundRelationTypeId": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"dataQualityMetrics": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdBy": "4d250cc5-e583-4640-9874-b93d82c7a6cb",
"createdOn": 1475503010320,
"lastModifiedBy": "a073ff90-e7bc-4b35-ba90-c4d475f642fe",
"lastModifiedOn": 1476703764163,
"system": true,
"countOperation": "Sum",
"attributeType": {
"id": "2b7f3a1a-4e50-4077-96f0-a58a395c860d",
"resourceDiscriminator": "Community",
"name": "text",
"description": "This is the description of the resource"
}
}
],
"profilingEnabled": true
}Last updated
Was this helpful?