curl --request POST \
--url http://localhost:8080/cabinet/admin/users/{user_id}/sync/from-panel \
--header 'Content-Type: application/json' \
--data '
{
"update_subscription": true,
"update_traffic": true,
"create_if_missing": false
}
'{
"success": true,
"message": "<string>",
"panel_user": {
"uuid": "<string>",
"short_uuid": "<string>",
"username": "<string>",
"status": "<string>",
"expire_at": "2023-11-07T05:31:56Z",
"traffic_limit_gb": 0,
"traffic_used_gb": 0,
"device_limit": 1,
"subscription_url": "<string>",
"active_squads": []
},
"changes": {},
"errors": []
}Sync user data FROM panel TO bot.
Fetches user data from Remnawave panel and updates local database.
curl --request POST \
--url http://localhost:8080/cabinet/admin/users/{user_id}/sync/from-panel \
--header 'Content-Type: application/json' \
--data '
{
"update_subscription": true,
"update_traffic": true,
"create_if_missing": false
}
'{
"success": true,
"message": "<string>",
"panel_user": {
"uuid": "<string>",
"short_uuid": "<string>",
"username": "<string>",
"status": "<string>",
"expire_at": "2023-11-07T05:31:56Z",
"traffic_limit_gb": 0,
"traffic_used_gb": 0,
"device_limit": 1,
"subscription_url": "<string>",
"active_squads": []
},
"changes": {},
"errors": []
}