Update promoter
curl --request PUT \
--url https://api.firstpromoter.com/api/v2/company/promoters/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"cust_id": "<string>",
"custom_fields": "<array>",
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"company_number": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "US",
"address": "<string>",
"avatar": "<string>",
"w8_form_url": "<string>",
"w9_form_url": "<string>",
"description": "<string>",
"invoice_details_validation_errors": {},
"should_validate_invoice_details": true,
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"profile[_destroy_w8form]": true,
"profile[_destroy_w9form]": true
}
'import requests
url = "https://api.firstpromoter.com/api/v2/company/promoters/{id}"
payload = {
"email": "jsmith@example.com",
"cust_id": "<string>",
"custom_fields": "<array>",
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"company_number": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "US",
"address": "<string>",
"avatar": "<string>",
"w8_form_url": "<string>",
"w9_form_url": "<string>",
"description": "<string>",
"invoice_details_validation_errors": {},
"should_validate_invoice_details": True,
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"profile[_destroy_w8form]": True,
"profile[_destroy_w9form]": True
}
headers = {
"Account-ID": "<account-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Account-ID': '<account-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'jsmith@example.com',
cust_id: '<string>',
custom_fields: '<array>',
profile: {
id: 123,
first_name: '<string>',
last_name: '<string>',
website: '<string>',
company_name: '<string>',
company_number: '<string>',
phone_number: '<string>',
vat_id: '<string>',
country: 'US',
address: '<string>',
avatar: '<string>',
w8_form_url: '<string>',
w9_form_url: '<string>',
description: '<string>',
invoice_details_validation_errors: {},
should_validate_invoice_details: true,
instagram_url: '<string>',
youtube_url: '<string>',
linkedin_url: '<string>',
facebook_url: '<string>',
twitter_url: '<string>',
twitch_url: '<string>',
tiktok_url: '<string>'
},
'profile[_destroy_w8form]': true,
'profile[_destroy_w9form]': true
})
};
fetch('https://api.firstpromoter.com/api/v2/company/promoters/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.firstpromoter.com/api/v2/company/promoters/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jsmith@example.com',
'cust_id' => '<string>',
'custom_fields' => '<array>',
'profile' => [
'id' => 123,
'first_name' => '<string>',
'last_name' => '<string>',
'website' => '<string>',
'company_name' => '<string>',
'company_number' => '<string>',
'phone_number' => '<string>',
'vat_id' => '<string>',
'country' => 'US',
'address' => '<string>',
'avatar' => '<string>',
'w8_form_url' => '<string>',
'w9_form_url' => '<string>',
'description' => '<string>',
'invoice_details_validation_errors' => [
],
'should_validate_invoice_details' => true,
'instagram_url' => '<string>',
'youtube_url' => '<string>',
'linkedin_url' => '<string>',
'facebook_url' => '<string>',
'twitter_url' => '<string>',
'twitch_url' => '<string>',
'tiktok_url' => '<string>'
],
'profile[_destroy_w8form]' => true,
'profile[_destroy_w9form]' => true
]),
CURLOPT_HTTPHEADER => [
"Account-ID: <account-id>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.firstpromoter.com/api/v2/company/promoters/{id}"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"cust_id\": \"<string>\",\n \"custom_fields\": \"<array>\",\n \"profile\": {\n \"id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"website\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_number\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"vat_id\": \"<string>\",\n \"country\": \"US\",\n \"address\": \"<string>\",\n \"avatar\": \"<string>\",\n \"w8_form_url\": \"<string>\",\n \"w9_form_url\": \"<string>\",\n \"description\": \"<string>\",\n \"invoice_details_validation_errors\": {},\n \"should_validate_invoice_details\": true,\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"twitch_url\": \"<string>\",\n \"tiktok_url\": \"<string>\"\n },\n \"profile[_destroy_w8form]\": true,\n \"profile[_destroy_w9form]\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Account-ID", "<account-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.firstpromoter.com/api/v2/company/promoters/{id}")
.header("Account-ID", "<account-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"cust_id\": \"<string>\",\n \"custom_fields\": \"<array>\",\n \"profile\": {\n \"id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"website\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_number\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"vat_id\": \"<string>\",\n \"country\": \"US\",\n \"address\": \"<string>\",\n \"avatar\": \"<string>\",\n \"w8_form_url\": \"<string>\",\n \"w9_form_url\": \"<string>\",\n \"description\": \"<string>\",\n \"invoice_details_validation_errors\": {},\n \"should_validate_invoice_details\": true,\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"twitch_url\": \"<string>\",\n \"tiktok_url\": \"<string>\"\n },\n \"profile[_destroy_w8form]\": true,\n \"profile[_destroy_w9form]\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firstpromoter.com/api/v2/company/promoters/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Account-ID"] = '<account-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jsmith@example.com\",\n \"cust_id\": \"<string>\",\n \"custom_fields\": \"<array>\",\n \"profile\": {\n \"id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"website\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_number\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"vat_id\": \"<string>\",\n \"country\": \"US\",\n \"address\": \"<string>\",\n \"avatar\": \"<string>\",\n \"w8_form_url\": \"<string>\",\n \"w9_form_url\": \"<string>\",\n \"description\": \"<string>\",\n \"invoice_details_validation_errors\": {},\n \"should_validate_invoice_details\": true,\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"twitch_url\": \"<string>\",\n \"tiktok_url\": \"<string>\"\n },\n \"profile[_destroy_w8form]\": true,\n \"profile[_destroy_w9form]\": true\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"email": "<string>",
"name": "<string>",
"cust_id": "<string>",
"note": "<string>",
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123,
"active_customers_count": 123
},
"is_customized": true,
"fraud_suspicions": [
"<string>"
],
"is_confirmed": true,
"invoice_details_status": "pending",
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"company_number": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "US",
"address": "<string>",
"avatar": "<string>",
"w8_form_url": "<string>",
"w9_form_url": "<string>",
"description": "<string>",
"invoice_details_validation_errors": {},
"should_validate_invoice_details": true,
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"joined_at": "2023-11-07T05:31:56Z",
"last_login_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"custom_fields": {},
"password_setup_url": "<string>",
"first_event_at": "2023-11-07T05:31:56Z",
"promoter_campaigns": [
{
"id": 123,
"campaign_id": 123,
"promoter_id": 123,
"state": "pending",
"created_at": "2023-11-07T05:31:56Z",
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"coupon": "<string>",
"ref_token": "<string>",
"ref_link": "<string>"
}
],
"balances": {
"cash": 123,
"credits": 123,
"points": 123,
"free_months": 123,
"discount": 123
},
"track_ad_traffic": true,
"auth_provider": "<string>",
"selected_payout_method": {
"id": 123,
"method": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"is_disabled": true
},
"parent_promoter": {
"id": 123,
"email": "<string>",
"name": "<string>"
},
"assigned_to": [
{
"id": 123,
"name": "<string>",
"email": "<string>"
}
]
}{
"message": "Validation failed: Email has already been taken",
"errors": {
"email": [
"has already been taken"
]
},
"code": "invalid_record"
}{}{
"message": "You don't have enough rights to perform this action",
"code": "forbidden"
}{
"message": "Record not found",
"code": "not_found"
}Promoters
Update promoter
Update a promoter’s profile, contact and custom field details by ID.
PUT
/
promoters
/
{id}
Update promoter
curl --request PUT \
--url https://api.firstpromoter.com/api/v2/company/promoters/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"cust_id": "<string>",
"custom_fields": "<array>",
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"company_number": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "US",
"address": "<string>",
"avatar": "<string>",
"w8_form_url": "<string>",
"w9_form_url": "<string>",
"description": "<string>",
"invoice_details_validation_errors": {},
"should_validate_invoice_details": true,
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"profile[_destroy_w8form]": true,
"profile[_destroy_w9form]": true
}
'import requests
url = "https://api.firstpromoter.com/api/v2/company/promoters/{id}"
payload = {
"email": "jsmith@example.com",
"cust_id": "<string>",
"custom_fields": "<array>",
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"company_number": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "US",
"address": "<string>",
"avatar": "<string>",
"w8_form_url": "<string>",
"w9_form_url": "<string>",
"description": "<string>",
"invoice_details_validation_errors": {},
"should_validate_invoice_details": True,
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"profile[_destroy_w8form]": True,
"profile[_destroy_w9form]": True
}
headers = {
"Account-ID": "<account-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Account-ID': '<account-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'jsmith@example.com',
cust_id: '<string>',
custom_fields: '<array>',
profile: {
id: 123,
first_name: '<string>',
last_name: '<string>',
website: '<string>',
company_name: '<string>',
company_number: '<string>',
phone_number: '<string>',
vat_id: '<string>',
country: 'US',
address: '<string>',
avatar: '<string>',
w8_form_url: '<string>',
w9_form_url: '<string>',
description: '<string>',
invoice_details_validation_errors: {},
should_validate_invoice_details: true,
instagram_url: '<string>',
youtube_url: '<string>',
linkedin_url: '<string>',
facebook_url: '<string>',
twitter_url: '<string>',
twitch_url: '<string>',
tiktok_url: '<string>'
},
'profile[_destroy_w8form]': true,
'profile[_destroy_w9form]': true
})
};
fetch('https://api.firstpromoter.com/api/v2/company/promoters/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.firstpromoter.com/api/v2/company/promoters/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jsmith@example.com',
'cust_id' => '<string>',
'custom_fields' => '<array>',
'profile' => [
'id' => 123,
'first_name' => '<string>',
'last_name' => '<string>',
'website' => '<string>',
'company_name' => '<string>',
'company_number' => '<string>',
'phone_number' => '<string>',
'vat_id' => '<string>',
'country' => 'US',
'address' => '<string>',
'avatar' => '<string>',
'w8_form_url' => '<string>',
'w9_form_url' => '<string>',
'description' => '<string>',
'invoice_details_validation_errors' => [
],
'should_validate_invoice_details' => true,
'instagram_url' => '<string>',
'youtube_url' => '<string>',
'linkedin_url' => '<string>',
'facebook_url' => '<string>',
'twitter_url' => '<string>',
'twitch_url' => '<string>',
'tiktok_url' => '<string>'
],
'profile[_destroy_w8form]' => true,
'profile[_destroy_w9form]' => true
]),
CURLOPT_HTTPHEADER => [
"Account-ID: <account-id>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.firstpromoter.com/api/v2/company/promoters/{id}"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"cust_id\": \"<string>\",\n \"custom_fields\": \"<array>\",\n \"profile\": {\n \"id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"website\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_number\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"vat_id\": \"<string>\",\n \"country\": \"US\",\n \"address\": \"<string>\",\n \"avatar\": \"<string>\",\n \"w8_form_url\": \"<string>\",\n \"w9_form_url\": \"<string>\",\n \"description\": \"<string>\",\n \"invoice_details_validation_errors\": {},\n \"should_validate_invoice_details\": true,\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"twitch_url\": \"<string>\",\n \"tiktok_url\": \"<string>\"\n },\n \"profile[_destroy_w8form]\": true,\n \"profile[_destroy_w9form]\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Account-ID", "<account-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.firstpromoter.com/api/v2/company/promoters/{id}")
.header("Account-ID", "<account-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"cust_id\": \"<string>\",\n \"custom_fields\": \"<array>\",\n \"profile\": {\n \"id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"website\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_number\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"vat_id\": \"<string>\",\n \"country\": \"US\",\n \"address\": \"<string>\",\n \"avatar\": \"<string>\",\n \"w8_form_url\": \"<string>\",\n \"w9_form_url\": \"<string>\",\n \"description\": \"<string>\",\n \"invoice_details_validation_errors\": {},\n \"should_validate_invoice_details\": true,\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"twitch_url\": \"<string>\",\n \"tiktok_url\": \"<string>\"\n },\n \"profile[_destroy_w8form]\": true,\n \"profile[_destroy_w9form]\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firstpromoter.com/api/v2/company/promoters/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Account-ID"] = '<account-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jsmith@example.com\",\n \"cust_id\": \"<string>\",\n \"custom_fields\": \"<array>\",\n \"profile\": {\n \"id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"website\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_number\": \"<string>\",\n \"phone_number\": \"<string>\",\n \"vat_id\": \"<string>\",\n \"country\": \"US\",\n \"address\": \"<string>\",\n \"avatar\": \"<string>\",\n \"w8_form_url\": \"<string>\",\n \"w9_form_url\": \"<string>\",\n \"description\": \"<string>\",\n \"invoice_details_validation_errors\": {},\n \"should_validate_invoice_details\": true,\n \"instagram_url\": \"<string>\",\n \"youtube_url\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"facebook_url\": \"<string>\",\n \"twitter_url\": \"<string>\",\n \"twitch_url\": \"<string>\",\n \"tiktok_url\": \"<string>\"\n },\n \"profile[_destroy_w8form]\": true,\n \"profile[_destroy_w9form]\": true\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"email": "<string>",
"name": "<string>",
"cust_id": "<string>",
"note": "<string>",
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123,
"active_customers_count": 123
},
"is_customized": true,
"fraud_suspicions": [
"<string>"
],
"is_confirmed": true,
"invoice_details_status": "pending",
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"company_number": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "US",
"address": "<string>",
"avatar": "<string>",
"w8_form_url": "<string>",
"w9_form_url": "<string>",
"description": "<string>",
"invoice_details_validation_errors": {},
"should_validate_invoice_details": true,
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"joined_at": "2023-11-07T05:31:56Z",
"last_login_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"custom_fields": {},
"password_setup_url": "<string>",
"first_event_at": "2023-11-07T05:31:56Z",
"promoter_campaigns": [
{
"id": 123,
"campaign_id": 123,
"promoter_id": 123,
"state": "pending",
"created_at": "2023-11-07T05:31:56Z",
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"coupon": "<string>",
"ref_token": "<string>",
"ref_link": "<string>"
}
],
"balances": {
"cash": 123,
"credits": 123,
"points": 123,
"free_months": 123,
"discount": 123
},
"track_ad_traffic": true,
"auth_provider": "<string>",
"selected_payout_method": {
"id": 123,
"method": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"is_disabled": true
},
"parent_promoter": {
"id": 123,
"email": "<string>",
"name": "<string>"
},
"assigned_to": [
{
"id": 123,
"name": "<string>",
"email": "<string>"
}
]
}{
"message": "Validation failed: Email has already been taken",
"errors": {
"email": [
"has already been taken"
]
},
"code": "invalid_record"
}{}{
"message": "You don't have enough rights to perform this action",
"code": "forbidden"
}{
"message": "Record not found",
"code": "not_found"
}Authorizations
Headers
Body
application/json
Find by attribute. Required when you want to find the promoter using another parameter like the email, cust_id, auth_token, ref_token, or promo_code instead of an ID.
Your request should follow the format https://api.firstpromoter.com/api/v2/company/promoters/{email, cust_id, auth_token, ref_token, or promo_code}
Available options:
email, cust_id, auth_token, ref_token, promo_code Custom fields must be a Hash with the keys being the ones from the company custom fields and values must be String or Array of Strings. These are based on the custom fields that you set in your Settings > Affiliate portal > Custom fields.
Note: Each item will have to be set as custom_fields[my_custom_field_key]: my_custom_field_value
Response
Promoter updated successfully