跳转到主要内容
POST
/
enrichment
/
mapping
/
schema
/
create
创建schema
curl --request POST \
  --url 'https://api.flashcat.cloud/enrichment/mapping/schema/create?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "schema_name": "<string>",
  "source_labels": [
    "<string>"
  ],
  "result_labels": [
    "<string>"
  ],
  "description": "<string>",
  "team_id": 123
}
'
{
  "data": {
    "schema_id": "<string>",
    "schema_name": "<string>"
  },
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
schema_name
string
必填
Required string length: 1 - 40
source_labels
string[]
必填
Required array length: 1 - 3 elements
Required string length: 1 - 40
result_labels
string[]
必填
Required array length: 1 - 10 elements
Required string length: 1 - 40
description
string
Maximum string length: 500
team_id
integer

响应

200 - application/json
data
object
必填
error
object

错误信息,仅失败时存在