updateReferralProgram( )


Updates a referral program. Supports partial updates.

Revision number, which increments by 1 each time the referral program is updated. To prevent conflicting changes, the current revision must be passed when updating the referral program.

Method Declaration
Copy
function updateReferralProgram(
  referralProgram: ReferralProgram,
): Promise<UpdateReferralProgramResponse>;
Method Parameters
referralProgramReferralProgramRequired

Referral program to update. Include the latest revision for a successful update.

Returns
Return Type:Promise<UpdateReferralProgramResponse>
JavaScript
import { programs } from "@wix/referral"; async function updateReferralProgram(referralProgram) { const response = await programs.updateReferralProgram(referralProgram); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?