跳到主要内容

创建多条数据

POST 

https://your-envId.api.tcloudbasegateway.com/v1/model/prod/:modelName/createMany

Request

Path Parameters

    modelName stringrequired

    数据模型标识

Body

    data object[]

Responses

成功

Schema
    oneOf
    data object
    idList undefined[]
    requestId 请求唯一id (string)

Authorization: http

name: JWTAuthtype: httpscheme: bearerdescription: 环境 ID 所对应的 token,使用登录鉴权(v2)获取
curl -L 'https://your-envId.api.tcloudbasegateway.com/v1/model/prod/:modelName/createMany' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": [
{
"foo": "bar"
}
]
}'
Request Collapse all
Base URL
https://your-envId.api.tcloudbasegateway.com
Auth
Parameters
— pathrequired
Body
{
"data": [
{
"foo": "bar"
}
]
}
ResponseClear

Click the Send API Request button above and see the response here!