Create Schema
POST
/enrichment/mapping/schema/createEach account is allowed to create maximum 10 schemas
Request
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
schema_name
string
Table name
>= 1 characters<= 40 characters
description
string
Table description
<= 500 characters
source_labels
array[string]
Query field list
>= 1 items<= 3 items
result_labels
array[string]
Result field list
>= 1 items<= 10 items
team_id
integer
Team ID
Example
{
"schema_name": "string",
"description": "string",
"source_labels": [
"string"
],
"result_labels": [
"string"
],
"team_id": 0
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
data
object
required
schema_id
string
schema id
schema_name
string
Schema name
Example
Not configured
Last modified: 2 个月前