Skip to main content
PATCH
Update Network Policy

Authorizations

X-Browser-Use-API-Key
string
header
required

Path Parameters

policy_id
string<uuid>
required

Body

application/json

Request body for updating a network policy; omitted fields keep their values.

name
string
Required string length: 1 - 100
defaultAction
enum<string>

Action for a domain that no list entry matches.

Available options:
allow,
block
allow
NetworkPolicyDomainList · object

Replaces the allowed domains.

block
NetworkPolicyDomainList · object

Replaces the blocked domains.

Response

Successful Response

A network policy with normalized domains.

id
string<uuid>
required
name
string
required
defaultAction
enum<string>
required

Action for a domain that no list entry matches.

Available options:
allow,
block
allow
NetworkPolicyDomainList · object
required

A list of domains.

block
NetworkPolicyDomainList · object
required

A list of domains.

version
integer
required

Starts at 1 and increases by 1 with each update.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required