Update IPPool
curl --request PUT \
--url https://api.sendpost.io/api/v1/account/ippool/{ippool_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Marketing Promotional",
"ips": [
{
"publicIP": "52.12.10.12"
},
{
"publicIP": "52.10.12.17"
},
{
"publicIP": "35.11.10.5"
}
]
}
'import requests
url = "https://api.sendpost.io/api/v1/account/ippool/{ippool_id}"
payload = {
"name": "Marketing Promotional",
"ips": [{ "publicIP": "52.12.10.12" }, { "publicIP": "52.10.12.17" }, { "publicIP": "35.11.10.5" }]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Marketing Promotional',
ips: [{publicIP: '52.12.10.12'}, {publicIP: '52.10.12.17'}, {publicIP: '35.11.10.5'}]
})
};
fetch('https://api.sendpost.io/api/v1/account/ippool/{ippool_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.sendpost.io/api/v1/account/ippool/{ippool_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([
'name' => 'Marketing Promotional',
'ips' => [
[
'publicIP' => '52.12.10.12'
],
[
'publicIP' => '52.10.12.17'
],
[
'publicIP' => '35.11.10.5'
]
]
]),
CURLOPT_HTTPHEADER => [
"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.sendpost.io/api/v1/account/ippool/{ippool_id}"
payload := strings.NewReader("{\n \"name\": \"Marketing Promotional\",\n \"ips\": [\n {\n \"publicIP\": \"52.12.10.12\"\n },\n {\n \"publicIP\": \"52.10.12.17\"\n },\n {\n \"publicIP\": \"35.11.10.5\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.sendpost.io/api/v1/account/ippool/{ippool_id}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Marketing Promotional\",\n \"ips\": [\n {\n \"publicIP\": \"52.12.10.12\"\n },\n {\n \"publicIP\": \"52.10.12.17\"\n },\n {\n \"publicIP\": \"35.11.10.5\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendpost.io/api/v1/account/ippool/{ippool_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Marketing Promotional\",\n \"ips\": [\n {\n \"publicIP\": \"52.12.10.12\"\n },\n {\n \"publicIP\": \"52.10.12.17\"\n },\n {\n \"publicIP\": \"35.11.10.5\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 756,
"name": "Marketing Promotional",
"created": 1567512491586102000,
"ips": [
{
"id": 11429,
"autoWarmupEnabled": true,
"autoWarmupStage": 5,
"publicIP": "52.12.10.12",
"created": 1567512491588017700
},
{
"id": 11530,
"autoWarmupEnabled": true,
"autoWarmupStage": 0,
"publicIP": "52.10.12.17",
"created": 1567512491568815400
},
{
"id": 11531,
"autoWarmupEnabled": true,
"autoWarmupStage": 0,
"publicIP": "35.11.10.5",
"created": 1567512491568025300
}
],
"thirdPartySendingProviders": [],
"routingStrategy": 0,
"routingMetaData": "{}"
}IPPools
Update IPPool
Update the details of an existing IPPool by its ID.
PUT
/
account
/
ippool
/
{ippool_id}
Update IPPool
curl --request PUT \
--url https://api.sendpost.io/api/v1/account/ippool/{ippool_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Marketing Promotional",
"ips": [
{
"publicIP": "52.12.10.12"
},
{
"publicIP": "52.10.12.17"
},
{
"publicIP": "35.11.10.5"
}
]
}
'import requests
url = "https://api.sendpost.io/api/v1/account/ippool/{ippool_id}"
payload = {
"name": "Marketing Promotional",
"ips": [{ "publicIP": "52.12.10.12" }, { "publicIP": "52.10.12.17" }, { "publicIP": "35.11.10.5" }]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Marketing Promotional',
ips: [{publicIP: '52.12.10.12'}, {publicIP: '52.10.12.17'}, {publicIP: '35.11.10.5'}]
})
};
fetch('https://api.sendpost.io/api/v1/account/ippool/{ippool_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.sendpost.io/api/v1/account/ippool/{ippool_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([
'name' => 'Marketing Promotional',
'ips' => [
[
'publicIP' => '52.12.10.12'
],
[
'publicIP' => '52.10.12.17'
],
[
'publicIP' => '35.11.10.5'
]
]
]),
CURLOPT_HTTPHEADER => [
"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.sendpost.io/api/v1/account/ippool/{ippool_id}"
payload := strings.NewReader("{\n \"name\": \"Marketing Promotional\",\n \"ips\": [\n {\n \"publicIP\": \"52.12.10.12\"\n },\n {\n \"publicIP\": \"52.10.12.17\"\n },\n {\n \"publicIP\": \"35.11.10.5\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.sendpost.io/api/v1/account/ippool/{ippool_id}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Marketing Promotional\",\n \"ips\": [\n {\n \"publicIP\": \"52.12.10.12\"\n },\n {\n \"publicIP\": \"52.10.12.17\"\n },\n {\n \"publicIP\": \"35.11.10.5\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendpost.io/api/v1/account/ippool/{ippool_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Marketing Promotional\",\n \"ips\": [\n {\n \"publicIP\": \"52.12.10.12\"\n },\n {\n \"publicIP\": \"52.10.12.17\"\n },\n {\n \"publicIP\": \"35.11.10.5\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 756,
"name": "Marketing Promotional",
"created": 1567512491586102000,
"ips": [
{
"id": 11429,
"autoWarmupEnabled": true,
"autoWarmupStage": 5,
"publicIP": "52.12.10.12",
"created": 1567512491588017700
},
{
"id": 11530,
"autoWarmupEnabled": true,
"autoWarmupStage": 0,
"publicIP": "52.10.12.17",
"created": 1567512491568815400
},
{
"id": 11531,
"autoWarmupEnabled": true,
"autoWarmupStage": 0,
"publicIP": "35.11.10.5",
"created": 1567512491568025300
}
],
"thirdPartySendingProviders": [],
"routingStrategy": 0,
"routingMetaData": "{}"
}Path Parameters
The ID of the IPPool to update
Example:
756
Body
application/json
Response
The updated IPPool details
Example:
746
Example:
"Transactional"
Example:
1597511124804000
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Example:
0
Example:
"{}"
Example:
false
Example:
true
Example:
null
Indicates whether the IP should overflow, once email capacity of the IP Pool has been reached, should we send remaining emails over shared IP or not
Example:
true
The name of the overflow pool
Example:
"Transactional"
The interval for the warmup
Example:
60
Was this page helpful?
⌘I