Skip to content

Update pool IPs

Request

Adds and/or removes IPs to/from the specified dynamic IP pool. A given pool is required to have at least 1 IP that is not actively warming. Additionally, a single IP cannot be assigned to multiple dynamic pools.

Security
basicAuth
Path
pool_namestringrequired

The name of the dynamic IP pool

Bodymultipart/form-datarequired
add_ipstringrequired

IP(s) to add to the pool

remove_ipstringrequired

IP(s) to remove from the pool

curl -i -X PATCH \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/dynamic_pools/{pool_name}' \
  -H 'Content-Type: multipart/form-data' \
  -F add_ip=string \
  -F remove_ip=string

Responses

A 200 response

Bodyapplication/json
string(string)
Response
{ "message": "success" }