Update Affiliate Link
Renames an affiliate link’s slug. Identify the link with either id or its current link slug, and give the new slug as newLink.
The new slug may contain only letters, numbers and hyphens, and must be unique within the program.
Renaming a slug breaks any referral URL already shared using the old slug — existing clicks, referrals and sales stay attached to the link, but new traffic on the old URL will not be tracked. Fires the affiliate.updated webhook for the link’s owner.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The rename to apply
Response
The updated affiliate link, with regenerated full URLs.
An affiliate link as returned by the affiliate link endpoints. The counters and fullURLs are computed per request and are not stored on the link itself.
The affiliate link ID
The affiliate link string
Timestamp when the affiliate link was created
Timestamp when the affiliate link was last updated
The affiliate who owns this link. null if the link has no owner.
The program this link belongs to. null if the link has no program.
Number of clicks on this affiliate link
Number of referrals generated by this link
Number of sales generated by this link
Sum of totalEarned across every sale attributed to this link
One entry per base URL configured on your program, with the affiliate's tracking parameter and any program URL parameters already applied. Share these directly.