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.
POST
/admin/reload/profiles
curl \
--request POST 'https://middleware.example.com/api/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"
}