curl -X PATCH http://localhost:6575/auth/enabled \
-H "Content-Type: application/json" \
-H 'Authorization: Bearer <admin-jwt>' \
-d '{
"enabled": true
}'{
"usage": {},
"time": 0,
"status": "ok",
"result": true
}{
"status": "error",
"message": "Missing required field: enabled"
}Admin User
Set 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.
PATCH
/
auth
/
enabled
curl -X PATCH http://localhost:6575/auth/enabled \
-H "Content-Type: application/json" \
-H 'Authorization: Bearer <admin-jwt>' \
-d '{
"enabled": true
}'{
"usage": {},
"time": 0,
"status": "ok",
"result": true
}{
"status": "error",
"message": "Missing required field: enabled"
}Authorizations
Admin JWT obtained from the login endpoint.
Headers
Admin JWT. Format Bearer <admin-jwt>.
Body
application/json
Set to true to enable authentication, false to disable it.