> ## Documentation Index
> Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Default Template

> Set a template as the organization's default survey template

# Set Default Template

Marks a template as the organization's default. The previous default template (if any) is automatically unset. The default template is used when sending surveys without specifying a `template_id`.

## Request

### Headers

<ParamField header="x-api-key" type="string" required>
  Your API key for authentication
</ParamField>

<ParamField header="x-organization-id" type="string" required>
  Your organization UUID
</ParamField>

### Path Parameters

<ParamField path="template_id" type="string" required>
  The UUID of the template to set as default
</ParamField>

## Response

Returns the updated template object with `is_default: true`.

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Standard Commuting Survey",
    "is_default": true,
    "updated_at": "2024-07-15T12:00:00Z"
  }
  ```
</ResponseExample>
