---
title: "Turn automatic enrollment off or on for one automation"
method: PUT
path: "/v1/admin/automation-auto-enrollments/{template_key}"
tags: ["admin"]
---

# Turn automatic enrollment off or on for one automation

`PUT /v1/admin/automation-auto-enrollments/{template_key}`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/admin/automation-auto-enrollments/{template_key}`
- Auth: HTTP bearer

## Path parameters

- `template_key` string, required

## Request body

- AutoEnrollmentUpdate: PUT body. ``enabled`` is a strict boolean, so a JSON ``0`` or ``"false"`` is a 422, never a silent switch.
  - `enabled` boolean, required

## Response `200`

Successful Response

- AutoEnrollmentItem
  - `template_key` string, required
  - `title` string, required
  - `enabled` boolean, required
  - `turned_off_at` string, date-time, nullable, required
  - `turned_off_by_email` string, nullable, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)
- `404`: Not found
- `409`: Conflict
- `422`: Validation error

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
