POST
/
base
/
create-from-template
shell
curl --request POST \
  --url https://app.teable.cn/api/base/create-from-template \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"spaceId":"string","templateId":"string","withRecords":true,"baseId":"string"}'
{
  "id": "<string>",
  "name": "<string>",
  "spaceId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
spaceId
string
required

The space id to create a base from

templateId
string
required

The template id to create a base from

withRecords
boolean

Whether to create records from the template

baseId
string

The base id to apply the template to

Response

201 - application/json

Returns information about a successfully created base.

id
string
required
name
string
required
spaceId
string
required