curl -X PATCH http://localhost:6573/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:6573/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"
}Body
application/json