---
title: "Set auth enabled"
method: PATCH
path: "/auth/enabled"
tags: ["Admin User"]
---

# Set auth enabled

`PATCH /auth/enabled`

Enables or disables authentication enforcement for the server. When auth is disabled, endpoints that normally require access tokens or JWT authorization can be called without credentials.

Requires an admin JWT in the `Authorization` header.

## Headers

- `Authorization` string, required

## Request body

- object
  - `enabled` boolean, required — Set to `true` to enable authentication, `false` to disable it.

## Response `200`

Auth setting updated. The `result` field reflects the current auth-enabled state after the update.

- object
  - `usage` object, nullable
  - `time` number, double — Time spent to process this request, in seconds.
  - `status` string
  - `result` boolean — The current auth-enabled state after the update.

## Other responses

- `400` — Missing `enabled` field.

---

[API](https://skmtc.net/actiancorp/apis/actian-vectorai-db-authentication-api.md) · [All operations](https://skmtc.net/actiancorp/apis/actian-vectorai-db-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/actiancorp/actian-vectorai-db-authentication-api/versions/1be75c43c359/schema)
