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

# Block Template

> Stop a sent survey template from accepting answers

[← Survey Templates API](/api-reference/employees/survey-templates/overview)

Blocks a template that was already sent, for example one sent by mistake. While it is blocked, its survey links (email and QR) show a "survey closed" screen instead of the questions, and any answer submitted for it is rejected with `403` and code `SURVEY_BLOCKED`. Existing responses are kept. Blocking is reversible with [Unblock Template](/api-reference/employees/survey-templates/unblock).

Blocking the organization's default template also closes the survey links that fall back to it.

## 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 block
</ParamField>

## Response

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

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