Adds a table to a specified category.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | AddToMetaCategory |
The operation that you want to perform. |
CategoryId | Long | Yes | 5 |
Class ID. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where your project resides. |
TableGuid | String | Yes | odps.engine_name.table_name |
The globally unique identifier (GUID) of the table. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Data | Boolean | true |
Indicates whether the table was added to the specified category. |
ErrorCode | String | Invalid.Tenant.ConnectionNotExists |
The error code. |
ErrorMessage | String | The connection does not exist. |
The error message. |
HttpStatusCode | Integer | 200 |
The HTTP status code. |
RequestId | String | 0bc1ec92159376 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=AddToMetaCategory &CategoryId=5 &RegionId=cn-shanghai &TableGuid=odps.engine_name.table_name &<common request parameters>
Sample success responses
XML
format
<RequestId>0bc1ec92159376</RequestId> <HttpStatusCode>200</HttpStatusCode> <Data>true</Data> <Success>true</Success>
JSON
Format
{ "RequestId": "0bc1ec92159376", "HttpStatusCode": 200, "Data": true, "Success": true }
Error codes
HttpCode | Error codes | Error message | Description |
---|---|---|---|
403 | Forbidden.Access | Access is forbidden. Activate DataWorks first. | You have restricted access. Please activate DataWorks Enterprise Edition or above. |
500 | InternalError.System | An internal system error occurred. Try again later. | An internal system error occurred. Please try again later. |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | An internal system error occurred. Please try again later. |
403 | ResourceNotAuthorized.Api | You are not authorized to access the resources. | You cannot access resources without authorization. |
429 | Throttling.Api | The request for this resource has exceeded your available limit. | The request for the resource exceeds your available upper limit. |
429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | The request for the resource has exceeded your daily availability limit. |
429 | Throttling.System | The DataWorks system is busy. Try again later. | DataWorks the system is busy, please try again later. |
429 | Throttling.User | Your request is too frequent. Try again later. | Your request is too frequent, please try to slow down the request speed. |
Go to the Error Center.For more information, see error codes.