跳转到主要内容
POST
/
import
/
{baseId}
cURL
curl --request POST \
  --url https://app.teable.ai/api/import/%7BbaseId%7D \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"worksheets":{"property1":{"name":"string","columns":[{"type":"singleLineText","name":"string","sourceColumnIndex":0}],"useFirstRowAsHeader":true,"importData":true},"property2":{"name":"string","columns":[{"type":"singleLineText","name":"string","sourceColumnIndex":0}],"useFirstRowAsHeader":true,"importData":true}},"attachmentUrl":"string","fileType":"csv","notification":true,"tz":"string"}'
{
  "id": "<string>",
  "name": "<string>",
  "dbTableName": "<string>",
  "description": "<string>",
  "icon": "<string>",
  "order": 123,
  "lastModifiedTime": "<string>",
  "defaultViewId": "<string>"
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

baseId
string
必填

请求体

application/json
worksheets
object
必填
attachmentUrl
string
必填
fileType
enum<string>
必填
可用选项:
csv,
excel
tz
string
必填

The time zone that should be used to format dates

notification
boolean

响应

201 - application/json

Returns data about a table without records

id
string
必填

The id of table.

name
string
必填

The name of the table.

dbTableName
string
必填

Table name in backend database. Limitation: 1-63 characters, start with letter, can only contain letters, numbers and underscore, case insensitive, cannot be duplicated with existing db table name in the base.

Pattern: ^[a-z]\w{0,62}$/i
description
string

The description of the table.

icon
string<emoji>

The emoji icon string of the table.

order
number
lastModifiedTime
string

The last modified time of the table.

defaultViewId
string

The default view id of the table.

最后修改于 2026年3月5日