CreateDataQualityTemplate

Updated at:

Creates a data quality rule template in a specified workspace.

Operation description

You must purchase DataWorks Basic Edition or higher to use this operation.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

No

The ID of the DataWorks workspace.

10000

Spec

string

No

The detailed configuration spec code of the rule template. For more information, see Data quality spec configuration guide.

name: Order table row count check catalog: Data quality/Completeness assertion: "row_count > 0"

Owner

string

No

The ID of the owner.

1000000000001

Response elements

Element

Type

Description

Example

object

The response result.

RequestId

string

The request ID.

0bc14115***159376359

Id

string

The ID of the created rule template. If identity is specified in Spec, this identifier is returned. The format of a system-generated template ID is USER_DEFINED:<number>.

USER_DEFINED:2001

Examples

Success response

JSON format

{
  "RequestId": "0bc14115***159376359",
  "Id": "USER_DEFINED:2001"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.