All Products
Search
Document Center

DataWorks:CreateQualityEntity

Last Updated:Mar 23, 2026

Creates a partition expression for data quality.

Note

This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - CreateDataQualityScan for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.

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 parameters

Parameter

Type

Required

Description

Example

ProjectName

string

Yes

The name of the engine or data source.

autotest

TableName

string

Yes

The name of the table.

dual

EnvType

string

Yes

The type of the engine or data source. Valid values: ODPS, EMR, CDH, and HOLO.

ODPS

MatchExpression

string

Yes

The partition expression.

dt=$[yyyymmdd]

EntityLevel

integer

No

This parameter is deprecated.

Valid values:

  • 0 :

    0: The check is performed after the SQL statement completes.

  • 1 :

    1

0

ProjectId

integer

Yes

The ID of the DataWorks workspace. You can go to the DataWorks console to obtain the workspace ID.

123

Response elements

Element

Type

Description

Example

object

The data returned.

HttpStatusCode

integer

The HTTP status code.

200

Data

integer

The ID of the created partition expression.

12345

ErrorMessage

string

The error message.

Your project is not relative with your account.

RequestId

string

The request ID.

011e1231u3****

Success

boolean

Indicates whether the request was successful.

true

ErrorCode

string

The error code.

401

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "Data": 12345,
  "ErrorMessage": "Your project is not relative with your account.",
  "RequestId": "011e1231u3****",
  "Success": true,
  "ErrorCode": "401"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.