Skip to main content

Update warehouse public access policy

PATCH/v1/warehouses/{warehouseId}/connections/public/access-policyTry it
View request and response examples ↓

Updates the warehouse public access policy for SaaS and BYOC Warehouses.

When publicAccessPolicy is ALLOWLIST_ONLY, include the desired allowlist rules in rules.

Authorization

X-API-Keystring · headerrequired

API key for /v1 requests.

Path parameters

warehouseIdstringrequired

Warehouse ID.

Headers

RequestIdstringrequired

Idempotency key for write requests.

Use a globally unique UUID or similar token for each logical write request. Never reuse a RequestId across different operations or payloads. You can safely retry the same RequestId only when the method, path, path parameters, query string, and request body are identical.

Minimum length1
Example8f6b0c2e-6a9a-4f2e-9c4c-0a1f9a2b7d31

Request body

application/jsonrequired
publicAccessPolicystringrequired

Public access mode; deny all, allow all, or allow only listed sources.

Allowed valuesDENY_ALLALLOW_ALLALLOWLIST_ONLY
rulesobject[]

Allowed source IP addresses or CIDR ranges. Use only with ALLOWLIST_ONLY.

Item fields
cidrstring

Allowed source IP address or CIDR range.

Example203.0.113.0/24

Optional rule description.

ExampleOffice egress IPs

Response

Public access policy updated successfully.

application/json
successbooleanrequired

Indicates whether the request succeeded.

Exampletrue
requestIdstringrequired

Request ID returned by the server for tracing.

Examplereq-20260402-001
dataobjectrequired

Empty success payload.

Additional propertiesnone

Enter to send · Shift+Enter for a new line