Skip to content

Container-wide proxy root settings control the proxy kill-switch (enable_proxy) and the default allow/deny policy applied to requests that have no explicit rule. These endpoints read and update the root record for a given container and use an ETag / If-Match header pair to support optimistic-concurrency updates.


GET /api/v1/containers/{id}/proxy/settings

Section titled “GET /api/v1/containers/{id}/proxy/settings”

Returns the container’s current proxy root settings along with the current etag and file_version. Pass the returned etag back as the If-Match header on subsequent PATCH calls to avoid overwriting concurrent changes.

NameInTypeRequiredDescription
idpathstringYesContainer ID
Terminal window
curl -X GET https://api.hoody.com/api/v1/containers/container_abc123/proxy/settings \
-H "Authorization: Bearer YOUR_API_TOKEN"

PATCH /api/v1/containers/{id}/proxy/settings

Section titled “PATCH /api/v1/containers/{id}/proxy/settings”

Updates one or both of enable_proxy and default. The request must include the If-Match header with the etag value returned by the most recent GET (formatted as file:v). At least one body field must be provided.

NameInTypeRequiredDescription
idpathstringYesContainer ID
if-matchheaderstringNoOptimistic-concurrency precondition; pass the value file:v where N is the current file version
FieldTypeRequiredDescription
enable_proxybooleanNoGlobal kill-switch for the container’s proxy
defaultstringNoDefault policy when no explicit rule matches. Allowed values: "allow", "deny"
Terminal window
curl -X PATCH https://api.hoody.com/api/v1/containers/container_abc123/proxy/settings \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "If-Match: file:v2" \
-d '{
"enable_proxy": true,
"default": "deny"
}'