pydo.byoip_prefixes.patch()
Generated on 20 Oct 2025
from pydo
version
v0.18.0
Description
To update a BYOIP prefix, send a PATCH request to /v2/byoip_prefixes/$byoip_prefix_uuid
.
Currently, you can update the advertisement status of the prefix. The response will include the updated details of the prefix.
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
byoip_prefix_uuid |
string | True | A unique identifier for a BYOIP prefix. | |
body |
JSON or IO[bytes] | True |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
byoip_prefix_uuid = "f47ac10b-58cc-4372-a567-0e02b2c3d479"
req = {
"advertise": True,
}
resp = client.byoip_prefixes.update(byoip_prefix_uuid=byoip_prefix_uuid, body=req)
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.