Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Update Details for an IP Address



API Overview

api-overview page anchor

The IP Address Management API combines functionality that was previously split between the Twilio SendGrid IP Address API and IP Pools API. This functionality includes adding IP addresses to your account, assigning IP addresses to IP Pools and Subusers, among other tasks. More details about each operation can be found in the descriptions and schemas for each endpoint.

(warning)

Warning

The IP Address Management API is in public beta at this time. This means the API and documentation are still in development and subject to change without advanced notice.


PATCH/v3/send_ips/ips/{ip}

Base url: https://api.sendgrid.com

This operation updates an IP address's settings, including whether the IP is set to warm up automatically, if the IP is assigned by a parent account, and whether the IP is enabled or disabled. The request body must include at least one of the is_auto_warmup, is_parent_assigned, or is_enabled fields.


Authentication

authentication page anchor
Property nameTypeRequiredDescription
Authorizationstringrequired
Default: Bearer <<YOUR_API_KEY_HERE>>
Property nameTypeRequiredDescription
ipstringrequired

The ip path parameter specifies an IP address to make the request against.

SchemaExample
Property nameTypeRequiredDescriptionChild properties
is_auto_warmupbooleanOptional

Indicates if the IP address is set to automatically warmup.


is_parent_assignedbooleanOptional

Indicates if a parent on the account is able to send email from the IP address.


is_enabledbooleanOptional

Indicates if the IP address is billed and able to send email. This parameter applies to non-Twilio SendGrid APIs that been added to your Twilio SendGrid account. This parameter's value is null for Twilio SendGrid IP addresses.

200400401500

OK

SchemaExample
Property nameTypeRequiredDescriptionChild properties
ipstring

The IP address that was updated.


is_auto_warmupboolean

Indicates if the IP address is set to automatically warmup.


is_parent_assignedboolean

Indicates if a parent on the account is able to send email from the IP address. This parameter is returned only if the IP address is parent assigned.


is_enabledboolean

An array of Subuser IDs the IP address was assigned to. This parameter is returned only if the IP address is enabled.

Update Details for an IP Address

update-details-for-an-ip-address page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
curl

_24
const client = require('@sendgrid/client');
_24
client.setApiKey(process.env.SENDGRID_API_KEY);
_24
_24
const ip = "ZGkrHSypTsudrGkmdpJJ";
_24
const data = {
_24
"is_auto_warmup": true,
_24
"is_parent_assigned": true,
_24
"is_enabled": true
_24
};
_24
_24
const request = {
_24
url: `/v3/send_ips/ips/${ip}`,
_24
method: 'PATCH',
_24
body: data
_24
}
_24
_24
client.request(request)
_24
.then(([response, body]) => {
_24
console.log(response.statusCode);
_24
console.log(response.body);
_24
})
_24
.catch(error => {
_24
console.error(error);
_24
});


Rate this page: