---
title: dots.v2.byoip_prefixes.byByoip_prefix_uuid().patch()
description: Update a BYOIP Prefix
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/byoip-prefixes/byoipprefixes-patch/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.byoip_prefixes.byByoip_prefix_uuid().patch()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
client.v2.byoip_prefixes.byByoip_prefix_uuid(byoip_prefix_uuid).patch(body: Byoip_prefix_update, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithByoip_prefix_uuPatchResponse>
```

## Description

To update a BYOIP prefix, send a PATCH request to [`/v2/byoip_prefixes/{byoip_prefix_uuid}`](https://docs.digitalocean.com/reference/api/reference/byoip-prefixes/index.html.md#byoipPrefixes_patch).

Currently, you can update the advertisement status of the prefix. The response will include the updated details of the prefix.

## Parameters

### Path Parameters

`byoip_prefix_uuid` string required

Example: `f47ac10b-58cc-4372-a567-0e02b2c3d479`

A unique identifier for a BYOIP prefix.

### Request Body

`advertise` boolean optional

Example: `true`

Whether the BYOIP prefix should be advertised

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.byoip_prefixes
    .byByoip_prefix_uuid("f47ac10b-58cc-4372-a567-0e02b2c3d479").patch({
    advertise: true,
});
```

## Response Example

## Show Response Example

```json
{
  "byoip_prefix": {
    "uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "status": "active",
    "region": "nyc3",
    "prefix": "203.0.113.0/24",
    "validations": [],
    "failure_reason": "",
    "advertised": true,
    "locked": false,
    "project_id": "12345678-1234-1234-1234-123456789012"
  }
}
```

## More Information

See [`/v2/byoip_prefixes/{byoip_prefix_uuid}`](https://docs.digitalocean.com/reference/api/reference/byoip-prefixes/index.html.md#byoipPrefixes_patch) in the API reference for additional detail on responses, headers, parameters, and more.