Skip to main content
Version: 1.0.0

Data Model OpenAPI

Feature Overview

This section lists all Data Model operation APIs along with the parameter reference for each API.

Access Guide

To call the following APIs, you need to pass an AccessToken in the format Authorization: Bearer <token>. For how to obtain the Access token, refer to the documentation.

HTTP Status Codes

Only 2xx status codes will be returned. Business errors of the Data Model API are indicated in the response body of 2xx responses and should be handled accordingly.

Error Codes

The following table lists the error codes specific to this series of APIs. For the complete list, refer to the documentation.

Error CodeDescription
AUTH_FAILURENo permission
FAILED_OPERATIONOperation failed
OPERATION_TIMEOUTOperation timed out
INVALID_PARAMETERInvalid parameter
INVALID_PARAMETER_VALUEInvalid parameter value
MISSING_PARAMETERMissing parameter
LIMIT_EXCEEDEDQuota limit exceeded
RESOURCE_NOT_FOUNDResource not found
RESOURCE_UNAVAILABLEResource unavailable
RESOURCE_INSUFFICIENTInsufficient resource
RESOURCE_IN_USEResource is in use
RESOURCE_SOLD_OUTResource sold out
OPERATION_DENIEDOperation denied
UNAUTHORIZED_OPERATIONUnauthorized operation
UNKNOWN_PARAMETERUnknown parameter
UNSUPPORTED_OPERATIONOperation not supported
DATA_SOURCE_OP_AUTH_FAILUREData source model authentication failed. Please configure proper role permissions in the User Permission module
FLEXDB_INTERNAL_ERRORCloud Database request error. Please check the parameters
FLEXDB_REQUEST_TIMEOUTRequest to the document database timed out. Please optimize your query or add indexes
AUTH_FAILURE_TOKEN_FAILUREToken error
NO_SUCH_VERSIONThe API version does not exist
REQUEST_LIMIT_EXCEEDEDThe request exceeded the rate limit
FLEXDB_RESOURCE_OVERDUEThe database resource has expired or the database read/write count has exceeded the plan limit. Please upgrade the plan's read/write quota, or wait until the next day for the quota to reset. If you have any questions, please verify the resource on the Cloud Database platform
FLEXDB_READ_LIMITThe database read count has reached the limit. Please upgrade the plan
FLEXDB_WRITE_LIMITThe database write count has reached the limit. Please upgrade the plan
FAILED_OPERATION_CUSTOMIZED_METHODS_ERRORCloud Function error, user-defined method error
DATASOURCE_NOT_EXISTData source does not exist. Please verify the data source in the console
TABLE_NOT_EXISTTable does not exist
FAILED_AGGREGATEAggregate query failed

Authentication

Token corresponding to the environment ID, obtained through login authentication (v2)

Security Scheme Type:

http

HTTP Authorization Scheme:

bearer