Skip to main content
PUT
/
links
Update an affiliate link by ID or link string
curl --request PUT \
  --url https://www.pushlapgrowth.com/api/v1/links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "link": "<string>",
  "newLink": "<string>"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "link": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "affiliate": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "email": "[email protected]"
  },
  "program": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "currency": "<string>"
  },
  "clicks": 123,
  "referrals": 123,
  "sales": 123,
  "totalRevenue": 123,
  "fullURLs": [
    {
      "baseUrl": "<string>",
      "fullUrl": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
id
string<uuid>

Response

id
string<uuid>
createdAt
string<date-time>
updatedAt
string<date-time>
affiliate
object
program
object
clicks
integer
referrals
integer
sales
integer
totalRevenue
number
fullURLs
object[]