> ## 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.

# Update Survey Template

> Update a survey template's configuration

[← Survey Templates API](https://code.dcycle.io/api-reference/employees/survey-templates/overview.md)

Update an existing survey template. Only provided fields are updated. When `config` is updated, the template `version` auto-increments.

> [!NOTE]
>
> **Live Editing**: Updating a template affects all future survey responses. Employees who open the survey link after the update will see the new configuration. Existing responses are not affected.

## Request

### Headers

**x-api-key** `string` *required*

Your API key for authentication

**x-organization-id** `string` *required*

Your organization UUID

### Path Parameters

**template\_id** `string` *required*

The UUID of the survey template

### Body Parameters

All fields are optional. Only include fields you want to update.

**name** `string`

Updated template name (1-255 characters)

**description** `string`

Updated description (max 1000 characters)

**config** `object`

Updated template configuration. Must include all steps (not just changed ones).

**status** `string`

**Available values:** `draft`, `active`, `archived`

**is\_default** `boolean`

Set as organization default (clears previous default)

## Response

Returns the updated template object.

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Updated Survey Name",
  "version": 4,
  "config": { "..." : "..." },
  "updated_at": "2024-07-15T12:00:00Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.