---
title: "Update firewall policy by network ID"
slug: "update-firewall-policy-by-network-id"
updated: 2026-02-18T12:52:40Z
published: 2026-02-18T12:52:58Z
canonical: "support.perimeter81.com/update-firewall-policy-by-network-id"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.perimeter81.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update firewall policy by network ID

Put/v2.3/networks/{networkId}/policy

Required permissions: `[&quot;network:update&quot;]`.

SecurityHTTPType bearer

Path parametersnetworkIdstringRequiredMin length1Pattern^[a-zA-Z0-9]+$

Body parameters<select class='api-response-data' aria-label='Media type'><option value='21d1dce0-d3ee-47db-a650-0c6396f4b1d2'>application/json</option>
</select>Expand Allobject  enabledboolean    Required

whether the policy is enabled.

allowedboolean    Required

whether the policy is accept or drop.

idExampleZwAeo5wqiF
policyRules Array of object (FirewallPolicyRule)   Required

an array of policy rules.

object  id
namestring    Required

Policy rule ID.

Min length5Max length50
enabledboolean    Required

wether the rule is enabled.

allowedboolean    Required

wether the rule is enabled.

sourcesobject (SourcesAndDestinations)  RequiredOneOfUsersAndGroupsobject (UsersAndGroups)users Array of string (AlphanumericWithSpace)   

List of IDs of users.

Min items1Max items10string    

Any alphanumeric value with space

Min length1Pattern^[a-zA-Z0-9 ]+$
groups Array of string (AlphanumericWithSpace)   

List of IDs of groups.

Min items1string    

Any alphanumeric value with space

Min length1Pattern^[a-zA-Z0-9 ]+$

Addressesobject (Addresses)addresses Array of string (AlphanumericWithSpace)   Required

List of IDs of address objects.

Min items1string    

Any alphanumeric value with space

Min length1Pattern^[a-zA-Z0-9 ]+$

destinationsobject (SourcesAndDestinations)  RequiredOneOfUsersAndGroupsobject (UsersAndGroups)users Array of string (AlphanumericWithSpace)   

List of IDs of users.

Min items1Max items10string    

Any alphanumeric value with space

Min length1Pattern^[a-zA-Z0-9 ]+$
groups Array of string (AlphanumericWithSpace)   

List of IDs of groups.

Min items1string    

Any alphanumeric value with space

Min length1Pattern^[a-zA-Z0-9 ]+$

Addressesobject (Addresses)addresses Array of string (AlphanumericWithSpace)   Required

List of IDs of address objects.

Min items1string    

Any alphanumeric value with space

Min length1Pattern^[a-zA-Z0-9 ]+$

services Array of string   

List of services objects IDs.

Min items1string    Pattern^[a-zA-Z0-9_- ]+$

traceboolean    

whether the policy is traced.

Responses202

Request accepted

<select class='api-response-data' aria-label='Media type'><option value='8e3c0ba8-4529-4447-84bf-532a6e45e7c1'>application/json</option>
</select>object  statusUrlstring    
samplingTimeinteger    

400

Bad request

401

Unauthorized

403

Forbidden

404

Network not found
