Skip to main content
POST
/
cabinet
/
admin
/
users
/
{user_id}
/
sync
/
to-panel
Sync User To Panel
curl --request POST \
  --url http://localhost:8080/cabinet/admin/users/{user_id}/sync/to-panel \
  --header 'Content-Type: application/json' \
  --data '
{
  "create_if_missing": true,
  "update_status": true,
  "update_traffic_limit": true,
  "update_expire_date": true,
  "update_squads": true
}
'
{
  "success": true,
  "message": "<string>",
  "action": "",
  "panel_uuid": "<string>",
  "changes": {},
  "errors": []
}

Path Parameters

user_id
integer
required

Body

application/json

Request to sync user to panel.

create_if_missing
boolean
default:true

Create user in panel if not exists

update_status
boolean
default:true

Update user status in panel

update_traffic_limit
boolean
default:true

Update traffic limit in panel

update_expire_date
boolean
default:true

Update expire date in panel

update_squads
boolean
default:true

Update connected squads in panel

Response

Successful Response

Response after syncing to panel.

success
boolean
required
message
string
required
action
string
default:""
panel_uuid
string | null
changes
Changes · object
errors
string[]