PATCH/api/v2/users/{userId}/referrals/links/{linkId}

Renames, re-targets (allowlisted destination), pauses/resumes/archives or re-schedules a link. The code is immutable.

Authentication

Send your API key in the x-api-key header on every request.

Parameters

Request parameters
FieldTypeRequiredDescription
userId (path)integer (int32)Yes
linkId (path)string (uuid)Yes

Request body

application/json

Request body fields
FieldTypeRequiredDescription
NamestringNo
StatusstringNoACTIVE, PAUSED or ARCHIVED. Archiving is final.
DestinationstringNoAllowlisted destination (signup, home, cards, topup, rewards). The code never changes.
ExpiresAtstring (date-time)No
ClearExpiresAtbooleanNo

Responses

200 — OK

Response 200 fields
FieldTypeRequiredDescription
Idstring (uuid)Yes
ProgramIdstring (uuid)Yes
ProgramNamestringYes
NamestringYes
CodestringYes
ChannelstringYes
LocalestringYes
DestinationstringYes
StatusstringYes
ActiveFromstring (date-time)Yes
ExpiresAtstring (date-time)Yes
CreatedAtstring (date-time)Yes
ShareUrlstringYes
SignupCountunknownYes
QualifiedCountunknownYes
ClickCountunknownYes
UniqueClickCountunknownYes
OfferVersionIdstring (uuid)Yes
SuggestedCaptionstringYes
OwnerUserIdunknownNo
OwnerNamestringNo
OwnerEmailstringNo

Example request

curl -X PATCH "https://{base_url}/api/v2/users/{userId}/referrals/links/{linkId}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

This page is generated from the live OpenAPI specification and always matches the current API.