Replace the organization's outbound allowlist extension. Requires an organization admin and a grant from a platform administrator. Patterns must name public hosts: `example.com`, `*.example.com`, or an `https://example.com/path/` prefix.
const url = 'https://app.everruns.com/api/v1/orgs/example/egress-allowlist';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"patterns":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://app.everruns.com/api/v1/orgs/example/egress-allowlist \ --header 'Content-Type: application/json' \ --data '{ "patterns": [ "example" ] }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Body of PUT /v1/orgs/{org}/egress-allowlist.
object
The full list of host patterns; replaces the stored list. Blank entries are ignored and duplicates collapsed.
Examplegenerated
{ "patterns": [ "example" ]}Responses
Section titled “ Responses ”Success
An organization’s egress allowlist extension.
object
Whether the caller may edit the patterns (an organization admin; the
edit also needs granted).
Whether the caller may grant or revoke (a platform administrator).
Whether a platform administrator allowed this organization to extend the deployment’s outbound allowlist. Patterns are enforced only while this is true.
Most patterns one organization may add.
The deployment’s egress policy: open, curated-writes, or
curated-all. Extensions only matter in a curated mode.
Host patterns this organization adds to the allowlist: example.com,
*.example.com, or an https://example.com/path/ prefix.
Example
{ "mode": "curated-writes"}Invalid pattern or too many patterns
Not an organization admin, or the organization is not granted
Organization not found