delete
https://api.fuul.xyz/api/v1/user-referrers
Removes the user_referrers row for a user in the project derived from the API key.
Authentication:
- Requires API key with
service_rolescope in theAuthorizationheader:Authorization: Bearer <api_key>
Use cases:
- Clear admin-imported referrer assignments created via PUT without a referral code redemption
- Undo
update_user_referrer/ PUT assignments whenremove_user_from_referral_codecannot apply (no matching referral code use)
Behavior:
- Orphaned
referral_code_usesrows (referrer/code no longer matches currentuser_referrers) are deleted automatically andactual_usesis decremented - If the user has matching
referral_code_usesandforceis not set, returns 422 — useDELETE /v1/referral_codes/{code}/referralsinstead - With
force=true, deletes allreferral_code_usesfor the user (matching or orphaned), decrementsactual_uses, then deletesuser_referrers - If no row exists, returns 422
User referrer relationship not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
204No Content - User referrer relationship deleted
400Bad Request - Invalid user identifier
401Unauthorized - Missing or invalid API key
403Forbidden - API key does not have service_role scope
404Not Found - Project not found
422Unprocessable Entity - User referrer not found, or user has referral code redemptions