referral_update
Update referral code (allowed once per account)
post/api/v1/referral/update
Header parameters
authorizationstringRequired
Auth token in the Authorization header.
Body
account_indexinteger · int64Required
new_referral_codestringRequired
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
successbooleanRequiredExample:
true400
Bad request
application/json
post/api/v1/referral/update
POST /api/v1/referral/update HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 46
"account_index=1&new_referral_code='text'"{
"code": 200,
"message": "text",
"success": true
}Last updated
Was this helpful?