Update Offer Group
curl --request PUT \
--url https://api.eflow.team/v1/networks/offergroups/{offerGroupId} \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"name": "Holiday Offers Updated",
"offer_group_status": "active",
"network_advertiser_id": 13,
"network_offer_ids": [
1,
8
],
"currency_id": "USD",
"is_caps_enabled": true,
"is_soft_cap": false,
"weekly_click_cap": 500
}
'import requests
url = "https://api.eflow.team/v1/networks/offergroups/{offerGroupId}"
payload = {
"name": "Holiday Offers Updated",
"offer_group_status": "active",
"network_advertiser_id": 13,
"network_offer_ids": [1, 8],
"currency_id": "USD",
"is_caps_enabled": True,
"is_soft_cap": False,
"weekly_click_cap": 500
}
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({
name: 'Holiday Offers Updated',
offer_group_status: 'active',
network_advertiser_id: 13,
network_offer_ids: [1, 8],
currency_id: 'USD',
is_caps_enabled: true,
is_soft_cap: false,
weekly_click_cap: 500
})
};
fetch('https://api.eflow.team/v1/networks/offergroups/{offerGroupId}', 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/offergroups/{offerGroupId}",
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([
'name' => 'Holiday Offers Updated',
'offer_group_status' => 'active',
'network_advertiser_id' => 13,
'network_offer_ids' => [
1,
8
],
'currency_id' => 'USD',
'is_caps_enabled' => true,
'is_soft_cap' => false,
'weekly_click_cap' => 500
]),
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/offergroups/{offerGroupId}"
payload := strings.NewReader("{\n \"name\": \"Holiday Offers Updated\",\n \"offer_group_status\": \"active\",\n \"network_advertiser_id\": 13,\n \"network_offer_ids\": [\n 1,\n 8\n ],\n \"currency_id\": \"USD\",\n \"is_caps_enabled\": true,\n \"is_soft_cap\": false,\n \"weekly_click_cap\": 500\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/offergroups/{offerGroupId}")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Holiday Offers Updated\",\n \"offer_group_status\": \"active\",\n \"network_advertiser_id\": 13,\n \"network_offer_ids\": [\n 1,\n 8\n ],\n \"currency_id\": \"USD\",\n \"is_caps_enabled\": true,\n \"is_soft_cap\": false,\n \"weekly_click_cap\": 500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/offergroups/{offerGroupId}")
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 \"name\": \"Holiday Offers Updated\",\n \"offer_group_status\": \"active\",\n \"network_advertiser_id\": 13,\n \"network_offer_ids\": [\n 1,\n 8\n ],\n \"currency_id\": \"USD\",\n \"is_caps_enabled\": true,\n \"is_soft_cap\": false,\n \"weekly_click_cap\": 500\n}"
response = http.request(request)
puts response.read_body{
"network_offer_group_id": 123,
"network_id": 123,
"network_advertiser_id": 123,
"name": "<string>",
"internal_notes": "<string>",
"offer_group_status": "active",
"is_caps_enabled": true,
"daily_conversion_cap": 123,
"weekly_conversion_cap": 123,
"monthly_conversion_cap": 123,
"global_conversion_cap": 123,
"daily_payout_cap": 123,
"weekly_payout_cap": 123,
"monthly_payout_cap": 123,
"global_payout_cap": 123,
"daily_revenue_cap": 123,
"weekly_revenue_cap": 123,
"monthly_revenue_cap": 123,
"global_revenue_cap": 123,
"daily_click_cap": 123,
"weekly_click_cap": 123,
"monthly_click_cap": 123,
"global_click_cap": 123,
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"advertiser": {
"network_advertiser_id": 123,
"network_id": 123,
"name": "<string>",
"account_status": "<string>",
"network_employee_id": 123,
"sales_manager_id": 123,
"address_id": 123,
"is_contact_address_enabled": true,
"default_currency_id": "<string>",
"platform_name": "<string>",
"platform_url": "<string>",
"platform_username": "<string>",
"offer_id_macro": "<string>",
"affiliate_id_macro": "<string>",
"accounting_contact_email": "<string>",
"internal_notes": "<string>",
"attribution_method": "<string>",
"email_attribution_method": "<string>",
"attribution_priority": "<string>",
"verification_token": "<string>",
"is_expose_publisher_reporting_data": true,
"reporting_timezone_id": 123,
"time_created": 1734455015,
"time_saved": 1734455015
},
"labels": {
"total": 123,
"entries": [
"<string>"
]
},
"network_offer_ids": [
123
],
"remaining_caps": {
"remaining_daily_payout_cap": 123,
"remaining_daily_revenue_cap": 123,
"remaining_daily_conversion_cap": 123,
"remaining_daily_click_cap": 123,
"remaining_weekly_payout_cap": 123,
"remaining_weekly_revenue_cap": 123,
"remaining_weekly_conversion_cap": 123,
"remaining_weekly_click_cap": 123,
"remaining_monthly_payout_cap": 123,
"remaining_monthly_revenue_cap": 123,
"remaining_monthly_conversion_cap": 123,
"remaining_monthly_click_cap": 123,
"remaining_global_payout_cap": 123,
"remaining_global_revenue_cap": 123,
"remaining_global_conversion_cap": 123,
"remaining_global_click_cap": 123
}
},
"is_soft_cap": true
}Offer Groups
Update Offer Group
Update an existing offer group. Any omitted non-required fields will be reset to defaults.
PUT
/
networks
/
offergroups
/
{offerGroupId}
Update Offer Group
curl --request PUT \
--url https://api.eflow.team/v1/networks/offergroups/{offerGroupId} \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"name": "Holiday Offers Updated",
"offer_group_status": "active",
"network_advertiser_id": 13,
"network_offer_ids": [
1,
8
],
"currency_id": "USD",
"is_caps_enabled": true,
"is_soft_cap": false,
"weekly_click_cap": 500
}
'import requests
url = "https://api.eflow.team/v1/networks/offergroups/{offerGroupId}"
payload = {
"name": "Holiday Offers Updated",
"offer_group_status": "active",
"network_advertiser_id": 13,
"network_offer_ids": [1, 8],
"currency_id": "USD",
"is_caps_enabled": True,
"is_soft_cap": False,
"weekly_click_cap": 500
}
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({
name: 'Holiday Offers Updated',
offer_group_status: 'active',
network_advertiser_id: 13,
network_offer_ids: [1, 8],
currency_id: 'USD',
is_caps_enabled: true,
is_soft_cap: false,
weekly_click_cap: 500
})
};
fetch('https://api.eflow.team/v1/networks/offergroups/{offerGroupId}', 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/offergroups/{offerGroupId}",
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([
'name' => 'Holiday Offers Updated',
'offer_group_status' => 'active',
'network_advertiser_id' => 13,
'network_offer_ids' => [
1,
8
],
'currency_id' => 'USD',
'is_caps_enabled' => true,
'is_soft_cap' => false,
'weekly_click_cap' => 500
]),
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/offergroups/{offerGroupId}"
payload := strings.NewReader("{\n \"name\": \"Holiday Offers Updated\",\n \"offer_group_status\": \"active\",\n \"network_advertiser_id\": 13,\n \"network_offer_ids\": [\n 1,\n 8\n ],\n \"currency_id\": \"USD\",\n \"is_caps_enabled\": true,\n \"is_soft_cap\": false,\n \"weekly_click_cap\": 500\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/offergroups/{offerGroupId}")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Holiday Offers Updated\",\n \"offer_group_status\": \"active\",\n \"network_advertiser_id\": 13,\n \"network_offer_ids\": [\n 1,\n 8\n ],\n \"currency_id\": \"USD\",\n \"is_caps_enabled\": true,\n \"is_soft_cap\": false,\n \"weekly_click_cap\": 500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/offergroups/{offerGroupId}")
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 \"name\": \"Holiday Offers Updated\",\n \"offer_group_status\": \"active\",\n \"network_advertiser_id\": 13,\n \"network_offer_ids\": [\n 1,\n 8\n ],\n \"currency_id\": \"USD\",\n \"is_caps_enabled\": true,\n \"is_soft_cap\": false,\n \"weekly_click_cap\": 500\n}"
response = http.request(request)
puts response.read_body{
"network_offer_group_id": 123,
"network_id": 123,
"network_advertiser_id": 123,
"name": "<string>",
"internal_notes": "<string>",
"offer_group_status": "active",
"is_caps_enabled": true,
"daily_conversion_cap": 123,
"weekly_conversion_cap": 123,
"monthly_conversion_cap": 123,
"global_conversion_cap": 123,
"daily_payout_cap": 123,
"weekly_payout_cap": 123,
"monthly_payout_cap": 123,
"global_payout_cap": 123,
"daily_revenue_cap": 123,
"weekly_revenue_cap": 123,
"monthly_revenue_cap": 123,
"global_revenue_cap": 123,
"daily_click_cap": 123,
"weekly_click_cap": 123,
"monthly_click_cap": 123,
"global_click_cap": 123,
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"advertiser": {
"network_advertiser_id": 123,
"network_id": 123,
"name": "<string>",
"account_status": "<string>",
"network_employee_id": 123,
"sales_manager_id": 123,
"address_id": 123,
"is_contact_address_enabled": true,
"default_currency_id": "<string>",
"platform_name": "<string>",
"platform_url": "<string>",
"platform_username": "<string>",
"offer_id_macro": "<string>",
"affiliate_id_macro": "<string>",
"accounting_contact_email": "<string>",
"internal_notes": "<string>",
"attribution_method": "<string>",
"email_attribution_method": "<string>",
"attribution_priority": "<string>",
"verification_token": "<string>",
"is_expose_publisher_reporting_data": true,
"reporting_timezone_id": 123,
"time_created": 1734455015,
"time_saved": 1734455015
},
"labels": {
"total": 123,
"entries": [
"<string>"
]
},
"network_offer_ids": [
123
],
"remaining_caps": {
"remaining_daily_payout_cap": 123,
"remaining_daily_revenue_cap": 123,
"remaining_daily_conversion_cap": 123,
"remaining_daily_click_cap": 123,
"remaining_weekly_payout_cap": 123,
"remaining_weekly_revenue_cap": 123,
"remaining_weekly_conversion_cap": 123,
"remaining_weekly_click_cap": 123,
"remaining_monthly_payout_cap": 123,
"remaining_monthly_revenue_cap": 123,
"remaining_monthly_conversion_cap": 123,
"remaining_monthly_click_cap": 123,
"remaining_global_payout_cap": 123,
"remaining_global_revenue_cap": 123,
"remaining_global_conversion_cap": 123,
"remaining_global_click_cap": 123
}
},
"is_soft_cap": true
}Authorizations
Body
application/json
Response
200 - application/json
Was this page helpful?
