Panelr

Enable or Disable Invite Code

POST ?action=set_referral_code

Switch an invite code off, or back on. Nothing is deleted — a disabled code keeps its history and can always be re-enabled.

Request Parameters

FieldTypeRequiredDescription
codestringRequiredThe invite code
disabledbooleanRequiredtrue switches it off, false back on

Response Fields

FieldTypeDescription
codestringThe code
disabledbooleanIts new state