pydo.byoip_prefixes.create()
Generated on 16 Feb 2026
from pydo version
v0.26.0
Description
To create a BYOIP prefix, send a POST request to /v2/byoip_prefixes.
A successful request will initiate the process of bringing your BYOIP Prefix into your account. The response will include the details of the created prefix, including its UUID and status.
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
req = {
"prefix": "203.0.113.0/24",
"region": "nyc3",
"signature": "<sample signature hash>",
}
resp = client.byoip_prefixes.create(body=req)More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.