Skip to main content
PATCH
/
auth
/
enabled
curl -X PATCH http://localhost:50052/auth/enabled \
  -H "Content-Type: application/json" \
  -H 'Authorization: Bearer <admin-jwt>' \
  -d '{
    "enabled": true
  }'
{
  "usage": {},
  "time": 0,
  "status": "ok",
  "result": true
}

Authorizations

Authorization
string
header
required

Admin JWT obtained from the login endpoint.

Headers

Authorization
string
required

Admin JWT. Format Bearer <admin-jwt>.

Body

application/json
enabled
boolean
required

Set to true to enable authentication, false to disable it.

Response

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

usage
object
time
number<double>

Time spent to process this request, in seconds.

status
string
result
boolean

The current auth-enabled state after the update.