Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X PATCH https://api.stophy.dev/v1/browser/network-policies/3b278838-610e-4e91-9a6c-c627d3a46e63 \ -H "Authorization: Bearer $STOPHY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"docs-example-renamed"}'
{ "success": true, "id": "3b278838-610e-4e91-9a6c-c627d3a46e63", "name": "docs-example-renamed", "defaultAction": "block", "allow": { "domains": [ "bun.com" ] }, "block": { "domains": [] }, "version": 2, "createdAt": "2026-11-17T17:49:05.858Z", "updatedAt": "2026-11-17T17:49:06.327Z", "runningSessions": 0, "appliedSessions": 0, "pendingSessionIds": [], "closedConnections": 0, "costUsd": 0, "requestId": "b79921f7-7a8b-4d84-95b3-bee0b8a2184a" }
Change a network policy, and every running session that uses it.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1 - 100
allow
block
Show child attributes
The policy.
What this call cost, in dollars.
What happens to a domain that no list entry matches.
Starts at 1 and goes up by 1 with each update.
Running browser sessions that use the policy, applied or pending.
How many of them now enforce this version. A session that is still on an older version shows that in networkPolicyVersion.
Sessions this call could not reach yet. They still enforce an older version.
Open connections to hosts the new version blocks, closed in those sessions.