---
title: "Update a BYOIP Prefix"
method: PATCH
path: "/v2/byoip_prefixes/{byoip_prefix_uuid}"
tags: ["DigitalOcean-public.v2-new_BYOIP Prefixes"]
---

# Update a BYOIP Prefix

`PATCH /v2/byoip_prefixes/{byoip_prefix_uuid}`

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.

## Path parameters

- `byoip_prefix_uuid` string, uuid, required

## Request body

- ByoipPrefixUpdate
  - `advertise` boolean — Whether the BYOIP prefix should be advertised

## Response `202`

Details of the updated BYOIP prefix

- object
  - `byoip_prefix` ByoipPrefix
    - `uuid` string — Unique identifier for the BYOIP prefix
    - `name` string — Name of the BYOIP prefix
    - `prefix` string — The IP prefix in CIDR notation
    - `status` string — Status of the BYOIP prefix
    - `region` string — Region where the BYOIP prefix is located
    - `validations` object[] — List of validation statuses for the BYOIP prefix
      - `name` string — Name of the validation
      - `status` string — Status of the validation
      - `note` string — Additional notes or details about the validation
    - `failure_reason` string — Reason for failure, if applicable
    - `locked` boolean — Whether the BYOIP prefix is locked
    - `advertised` boolean — Whether the BYOIP prefix is being advertised
    - `project_id` string — The ID of the project associated with the BYOIP prefix

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `422` — Unprocessable Entity
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

[API](https://skmtc.net/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.net/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/revisions/cb3bf9b21459/schema)
