Skip to content
Hoody.com

Container-wide proxy root settings expose the master enable_proxy kill-switch and the default allow/deny policy that applies to any proxy permission that does not specify its own rule. Use these endpoints to inspect the current root configuration and to update it with optimistic-concurrency control via the If-Match ETag.

Base URL for all cURL examples: https://api.hoody.icu

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

Returns the current proxy root settings for the container, including an ETag header value suitable for use as an If-Match precondition on subsequent updates.

NameInTypeRequiredDescription
idpathstringYesContainer ID
Terminal window
curl -X GET "https://api.hoody.icu/api/v1/containers/cnt_8f3a1b2c4d5e6f70/proxy/settings" \
-H "Authorization: Bearer <token>"

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

Updates one or both of enable_proxy and default. The request must include the If-Match: file:v precondition header obtained from a previous GET. The response returns the updated settings and a fresh ETag.

NameInTypeRequiredDescription
idpathstringYesContainer ID
if-matchheaderstringNofile:v ETag precondition
FieldTypeRequiredDescription
enable_proxybooleanNoMaster kill-switch for the container proxy subsystem
defaultstringNoDefault policy when no specific permission rule applies. Allowed values: allow, deny

The body must include at least one of the fields above.

Terminal window
curl -X PUT "https://api.hoody.icu/api/v1/containers/cnt_8f3a1b2c4d5e6f70/proxy/settings" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-H "If-Match: file:v3" \
-d '{
"enable_proxy": true,
"default": "allow"
}'