Skip to main content
PUT
/
referral_links
/
{id}
Updates a referral link
curl --request PUT \
  --url https://v2.firstpromoter.com/api/v2/affiliate/referral_links/{id} \
  --header 'Account-ID: <account-id>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sub_id": "<string>",
  "name": "<string>"
}'
{
  "id": 123,
  "name": "<string>",
  "url": "<string>",
  "is_default": true,
  "source": "campaign",
  "sub_id": "<string>",
  "campaign": {
    "id": 123,
    "name": "<string>",
    "color": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Access token passed as a Bearer token in the Authorization header

Headers

Account-ID
string
required

Account identifier that specifies which account is making the request

Example:

"acc_123456"

Path Parameters

id
integer
required

ID of the referral link to update

Body

application/json
sub_id
string

Sub id

name
string

Name

Response

Updated referral link

id
integer | null
name
string
url
string
is_default
boolean | null
source
enum<string>
Available options:
campaign,
promoter
sub_id
string | null
campaign
object
I