Skip to main content
PATCH
/
api
/
auth
/
register-switch
Update Register Switch
curl --request PATCH \
  --url https://api.example.com/api/auth/register-switch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true
}
'
{
  "success": true,
  "registration_enabled": true,
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.xagent.run/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
enabled
boolean
required

Response

Successful Response

success
boolean
required
registration_enabled
boolean
required
message
string
required