Creates a table level. This operation will be replaced soon. We recommend that you do not call this operation.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | CreateTableLevel | The operation that you want to perform. Set the value to CreateTableLevel. |
ProjectId | Long | Yes | 123 | The DataWorks workspace ID. |
LevelType | Integer | Yes | 1 | The type of the table level. Valid values: 1 and 2. The value 1 indicates the logical level. The value 2 indicates the physical level. |
Name | String | Yes | Level 1 | The name of the table level. |
Description | String | No | Level description | The description of the table level. |
Response parameters
Parameter | Type | Example | Description |
HttpStatusCode | Integer | 200 | The HTTP status code. |
RequestId | String | Request ID | The request ID. |
ErrorMessage | String | The specified parameters are invalid. | The error message. |
ErrorCode | String | 1031203110005 | The error code. |
Success | Boolean | true | Indicates whether the request was successful. |
LevelId | Long | 123 | The table level ID. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateTableLevel
&ProjectId=123
&LevelType=1
&Name=Level 1
&Description=Level description
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateTableLevelResponse>
<HttpStatusCode>200</HttpStatusCode>
<RequestId>Request ID</RequestId>
<ErrorMessage>The specified parameters are invalid.</ErrorMessage>
<ErrorCode>1031203110005</ErrorCode>
<Success>true</Success>
<LevelId>123</LevelId>
</CreateTableLevelResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"HttpStatusCode" : 200,
"RequestId" : "Request ID",
"ErrorMessage" : "The specified parameters are invalid.",
"ErrorCode" : "1031203110005",
"Success" : true,
"LevelId" : 123
}
Error codes
HTTP status code | Error code | Error message | Description |
403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | No permissions. |
429 | Throttling.Api | The request for this resource has exceeded your available limit. | The number of requests for the resource has exceeded the upper limit. |
429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | The number of requests per day for the resource has exceeded the upper limit. |
429 | Throttling.System | The DataWorks system is busy. Try again later. | The DataWorks system is busy. Try again later. |
429 | Throttling.User | Your request is too frequent. Try again later. | Excessive requests have been submitted within a short period of time. Try again later. |
500 | InternalError.System | An internal system error occurred. Try again later. | An internal error occurred. Try again later. |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | An internal error occurred. Try again later. |
For a list of error codes, see Service error codes.