Update affiliate link
Updates the specified affiliate link by setting the values of the parameters passed.
Keep in mind that when you change a link's token, the previous token will immediately stop tracking visits. If this is a concern, considering creating a new affiliate link rather than updating existing links.

Request

Method
URL
PUT
https://api.getrewardful.com/v1/affiliate_links/:id

Parameters

Parameter
Required?
Description
token
Yes
The new token to be used for the link.

Example

curl --request PUT \
--url https://api.getrewardful.com/v1/affiliate_links/d0ed8392-8880-4f39-8715-60230f9eceab \
-u YOUR_API_SECRET: \
-d token=darth-vader

Response

Success
Failures
Response code
Body

Not found

Response code
Body
404
JSON object describing the error.
{ "error": "Affiliate link not found: " }

Authentication failure

Response code
Body
401
Description of the authentication failure.
{ "error": "Invalid API Secret." }
Export as PDF
Copy link