简体中文
create table from file
cURL
curl --request POST \ --url https://app.teable.cn/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>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Returns data about a table without records
The response is of type object.
object