Update Custom Scrub Rate
curl --request PUT \
--url https://api.eflow.team/v1/networks/custom/scrubrate/{settingId} \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"custom_setting_status": "active",
"scrub_rate_percentage": 10,
"scrub_rate_status": "rejected",
"network_offer_id": 1,
"network_affiliate_id": 7
}
'import requests
url = "https://api.eflow.team/v1/networks/custom/scrubrate/{settingId}"
payload = {
"custom_setting_status": "active",
"scrub_rate_percentage": 10,
"scrub_rate_status": "rejected",
"network_offer_id": 1,
"network_affiliate_id": 7
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
custom_setting_status: 'active',
scrub_rate_percentage: 10,
scrub_rate_status: 'rejected',
network_offer_id: 1,
network_affiliate_id: 7
})
};
fetch('https://api.eflow.team/v1/networks/custom/scrubrate/{settingId}', 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.eflow.team/v1/networks/custom/scrubrate/{settingId}",
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([
'custom_setting_status' => 'active',
'scrub_rate_percentage' => 10,
'scrub_rate_status' => 'rejected',
'network_offer_id' => 1,
'network_affiliate_id' => 7
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-Api-Key: <api-key>"
],
]);
$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.eflow.team/v1/networks/custom/scrubrate/{settingId}"
payload := strings.NewReader("{\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_offer_id\": 1,\n \"network_affiliate_id\": 7\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
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.eflow.team/v1/networks/custom/scrubrate/{settingId}")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_offer_id\": 1,\n \"network_affiliate_id\": 7\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/custom/scrubrate/{settingId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_offer_id\": 1,\n \"network_affiliate_id\": 7\n}"
response = http.request(request)
puts response.read_body{
"network_custom_scrub_rate_setting_id": 123,
"network_id": 123,
"network_offer_id": 123,
"network_affiliate_id": 123,
"name": "<string>",
"custom_setting_status": "active",
"scrub_rate_percentage": 123,
"scrub_rate_status": "rejected",
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"affiliate": {
"network_affiliate_id": 123,
"network_id": 123,
"name": "<string>",
"account_status": "<string>",
"network_employee_id": 123,
"internal_notes": "<string>",
"has_notifications": true,
"network_traffic_source_id": 123,
"account_executive_id": 123,
"adress_id": 123,
"default_currency_id": "<string>",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 1734455015,
"time_saved": 1734455015,
"referrer_id": 123
},
"offer": {
"network_offer_id": 123,
"network_id": 123,
"network_advertiser_id": 123,
"network_offer_group_id": 123,
"name": "<string>",
"offer_status": "<string>",
"network_tracking_domain_id": 123,
"visibility": "<string>",
"currency_id": "<string>"
},
"ruleset": {},
"variables": {
"total": 123,
"entries": [
{
"network_custom_scrub_rate_setting_variable_id": 123,
"network_custom_scrub_rate_setting_id": 123,
"comparison_method": "<string>",
"variable": "<string>",
"variable_value": "<string>",
"variable_secondary_value": "<string>"
}
]
}
}
}Custom Scrub Rates (Throttle)
Update Custom Scrub Rate
PUT
/
networks
/
custom
/
scrubrate
/
{settingId}
Update Custom Scrub Rate
curl --request PUT \
--url https://api.eflow.team/v1/networks/custom/scrubrate/{settingId} \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"custom_setting_status": "active",
"scrub_rate_percentage": 10,
"scrub_rate_status": "rejected",
"network_offer_id": 1,
"network_affiliate_id": 7
}
'import requests
url = "https://api.eflow.team/v1/networks/custom/scrubrate/{settingId}"
payload = {
"custom_setting_status": "active",
"scrub_rate_percentage": 10,
"scrub_rate_status": "rejected",
"network_offer_id": 1,
"network_affiliate_id": 7
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
custom_setting_status: 'active',
scrub_rate_percentage: 10,
scrub_rate_status: 'rejected',
network_offer_id: 1,
network_affiliate_id: 7
})
};
fetch('https://api.eflow.team/v1/networks/custom/scrubrate/{settingId}', 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.eflow.team/v1/networks/custom/scrubrate/{settingId}",
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([
'custom_setting_status' => 'active',
'scrub_rate_percentage' => 10,
'scrub_rate_status' => 'rejected',
'network_offer_id' => 1,
'network_affiliate_id' => 7
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-Api-Key: <api-key>"
],
]);
$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.eflow.team/v1/networks/custom/scrubrate/{settingId}"
payload := strings.NewReader("{\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_offer_id\": 1,\n \"network_affiliate_id\": 7\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
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.eflow.team/v1/networks/custom/scrubrate/{settingId}")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_offer_id\": 1,\n \"network_affiliate_id\": 7\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/custom/scrubrate/{settingId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_offer_id\": 1,\n \"network_affiliate_id\": 7\n}"
response = http.request(request)
puts response.read_body{
"network_custom_scrub_rate_setting_id": 123,
"network_id": 123,
"network_offer_id": 123,
"network_affiliate_id": 123,
"name": "<string>",
"custom_setting_status": "active",
"scrub_rate_percentage": 123,
"scrub_rate_status": "rejected",
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"affiliate": {
"network_affiliate_id": 123,
"network_id": 123,
"name": "<string>",
"account_status": "<string>",
"network_employee_id": 123,
"internal_notes": "<string>",
"has_notifications": true,
"network_traffic_source_id": 123,
"account_executive_id": 123,
"adress_id": 123,
"default_currency_id": "<string>",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 1734455015,
"time_saved": 1734455015,
"referrer_id": 123
},
"offer": {
"network_offer_id": 123,
"network_id": 123,
"network_advertiser_id": 123,
"network_offer_group_id": 123,
"name": "<string>",
"offer_status": "<string>",
"network_tracking_domain_id": 123,
"visibility": "<string>",
"currency_id": "<string>"
},
"ruleset": {},
"variables": {
"total": 123,
"entries": [
{
"network_custom_scrub_rate_setting_variable_id": 123,
"network_custom_scrub_rate_setting_id": 123,
"comparison_method": "<string>",
"variable": "<string>",
"variable_value": "<string>",
"variable_secondary_value": "<string>"
}
]
}
}
}Update an existing custom scrub rate (throttle) setting. Required fields are
name, custom_setting_status, scrub_rate_percentage, scrub_rate_status, network_affiliate_id, and network_offer_id.Authorizations
Body
application/json
Targeting ruleset for this custom scrub rate setting. Allows you to restrict when this scrub rate is applied based on geographic, device, browser, and connection criteria. See the Ruleset guide for details.
Response
200 - application/json
Was this page helpful?
