---
title: "Set a folder's default template"
description: "The template new pages in a folder start from: a built-in template's id or a workspace template's id, or null for a blank page."
canonical_url: https://docs.markdrop.in/api/templates/set-a-folder-s-default-template
last_updated: 2026-11-04
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Set a folder's default template

`PUT https://api.markdrop.in/api/v1/workspaces/{workspace_id}/folders/{folder_id}/default-template`

The template new pages in a folder start from: a built-in template's id or a workspace template's id, or `null` for a blank page. Admins only. People can still choose another template.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 10 per minute per IP address.
- **MCP tool:** `set_folder_default_template` ([tools](https://docs.markdrop.in/ai/tools))
- **Guide:** [Templates](https://docs.markdrop.in/pages/templates)

## Path parameters

- `workspace_id` (string, required): The workspace's id, from the address of its settings page (`markdrop.in/settings/workspaces/<workspace-id>`) or from [List workspaces](https://docs.markdrop.in/api/workspaces/list-workspaces).
- `folder_id` (string, required): The folder's id, from [List folders](https://docs.markdrop.in/api/folders/list-folders).

## Request body

`application/json`, required.

- `template` (string): A built-in template's id, or a workspace template's id. `null`: new pages start blank. Up to 64 characters.

## Responses

- `200`: OK.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X PUT https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/folders/FOLDER_ID/default-template \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"template":"meeting-notes"}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/folders/FOLDER_ID/default-template", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "template": "meeting-notes"
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.put(
    "https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/folders/FOLDER_ID/default-template",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"template": "meeting-notes"},
)
r.raise_for_status()
print(r.json())
```
