Skip to content

Update Referral Program

Tool name: update-referral-program

Updates a referral program, also without referral program access; omitted settings stay, the counter field cannot change. A new threshold applies to the next successful recommendation; contacts already tagged keep their tag.

Input schema

idinteger, >= 1required

ID of the program, from search-referral-programs or create-referral-program

namenull or string, [ 1 .. 250 ] characters

New name of the program

Default:null
targetUrlnull or string, [ 1 .. 2000 ] characters

Absolute URL of the page a recommended person is sent to

Default:null
thresholdnull or integer, [ 1 .. 1000000000 ]

Successful recommendations a contact needs before the program tags them

Default:null
metaLabelsArray of strings

Labels of the program; replaces the current ones

Default:null
notesnull or string, <= 1000 characters

Internal note

Default:null
accountIdnull or integer, >= 1

User ID of the account; omit for the account of the access token

Default:null
Input example
{ "id": 1, "name": null, "targetUrl": null, "threshold": null, "metaLabels": null, "notes": null, "accountId": null }

Output schema

accountIdintegerrequired
idintegerrequired
namestringrequired
notesstringrequired
metaLabelsArray of stringsrequired
targetUrlstringrequired
thresholdintegerrequired
counterCustomFieldIdstringrequired
editUrlstringrequired
Output example
{ "accountId": 0, "id": 0, "name": "string", "notes": "string", "metaLabels": [ "string" ], "targetUrl": "string", "threshold": 0, "counterCustomFieldId": "string", "editUrl": "string" }