---
title: "Create a base from template or apply a template to a base"
method: POST
path: "/base/create-from-template"
tags: ["base"]
---

# Create a base from template or apply a template to a base

`POST /base/create-from-template`

Create a base from template or apply a template to a base

## Request body

- object
  - `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`

Returns information about a successfully created base.

- object
  - `id` string, required
  - `name` string, required
  - `spaceId` string, required
  - `defaultUrl` string

---

[API](https://skmtc.net/teable/apis/teable-app.md) · [All operations](https://skmtc.net/teable/apis/teable-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teable/teable-app/revisions/7515f3b33d79/schema)
