---
title: "Admin Patch Survey"
method: PATCH
path: "/admin/surveys/{survey_id}"
---

# Admin Patch Survey

`PATCH /admin/surveys/{survey_id}`

## Request

- Base URL: `https://api.local-mcp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.local-mcp.com/admin/surveys/{survey_id}`
- Auth: none declared. Required headers: `x-admin-key`

Activate/deactivate or tweak a survey's gating fields, title, or questions (visual editor).

## Path parameters

- `survey_id` integer, required

## Headers

- `x-admin-key` string, required

## Request body

- SurveyPatchBody
  - `active` boolean, nullable
  - `blocking` boolean, nullable
  - `min_sessions` integer, nullable
  - `max_skips` integer, nullable
  - `closes_at` string, nullable
  - `title` object, nullable
  - `questions` unknown[], nullable
    - unknown

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/local-mcp/apis/lmcp-api.md) · [All operations](https://skmtc.dev/local-mcp/apis/lmcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/local-mcp/apis/lmcp-api/revisions/f1f1c502623a?raw)
