pydo.byoip_prefixes.create()

Generated on 15 Jul 2025 from pydo version v0.13.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.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.