Reload profiles and users configuration (Super Admin only)

POST /admin/reload/profiles

Trigger a global reload of profiles and users configuration from the configured JSON files. This endpoint is intended for super-administrators and will call the internal reload routine to refresh in-memory profiles and users without restarting the service.

Responses

  • 200 application/json

    Profiles reloaded successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data empty object
  • 500 application/json

    Internal server error when reload fails

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data string

      Error details

POST /admin/reload/profiles
curl \
 --request POST 'http://localhost:8080/admin/reload/profiles' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "data": {
    "trigger": "api"
  },
  "message": "profiles reloaded successfully"
}
Response examples (500)
{
  "code": 500,
  "data": "parse profiles: invalid character 'i'",
  "message": "failed to reload profiles"
}