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.
function updateReferralProgram(
referralProgram: ReferralProgram,
): Promise<UpdateReferralProgramResponse>;
Referral program to update. Include the latest revision
for a successful update.
import { programs } from "@wix/referral";
async function updateReferralProgram(referralProgram) {
const response = await programs.updateReferralProgram(referralProgram);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.