Skip to main content
PATCH
Change the Referral settings

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Query Parameters

dryRun
boolean

Check and report the change without saving it

Body

application/json

The settings to change

isActive
boolean
default:false

Turns on the referral programme: members vouch for new people by answering the three referral questions. Those questions are set on the Referral page of the Users module in the admin app, not through this API; switching on is refused while one is empty.

numberOfReferralsNeededForSignup
enum<integer> | null

Number of member referrals (0 to 10) a new registrant needs before they can finish signing up; until then their account waits for referrals. 0 or empty means none needed.

Available options:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
null

Response

OK