Update a referral code
PATCH/referral_codes/:id
Changes the label, pauses or resumes the code (active), or replaces its UTM presets. The
target is fixed at creation. A paused code is ignored on arrival; existing cookies still
credit investments for up to 30 days. Reactivating counts against the 500 active codes.
Request
Responses
- 200
- 401
- 403
- 404
- 422
The updated referral code
Authentication required or token is invalid/expired. This error occurs when:
- No Authorization header is provided
- The access token is invalid or malformed
- The access token has expired
- The access token has been revoked
To resolve: Obtain a new access token using the OAuth 2.0 flow.
The authenticated user does not have permission to access this resource. This typically means:
- The user is authenticated but lacks the required OAuth scope
- The resource belongs to a different user
- The user's role doesn't allow this operation
Check that your OAuth token includes the necessary scopes for this endpoint.
The requested resource does not exist or is not visible to this token.
quota_exceeded, reserved_utm_prefix, or validation_error.