Update server proxy
API server
https://app.coolify.io/api/v1Update proxy redirect settings, exact labels generation, the Traefik certificate resolver, and optionally the proxy type for a team-owned server. Changing proxy_type needs a token with the write and deploy permissions.
Authorization
bearerAuth Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
In: header
Path Parameters
Server UUID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Public http(s) redirect URL, or null to clear.
Custom HTML error page that the proxy shows for unknown hosts (when redirect_url is empty) and for resources in maintenance mode. Null restores the default page.
Traefik certificate resolver for generated HTTPS routers (letters, digits, _ and -). Null or empty to use your own certificates. Redeploy resources to apply.
Proxy type (case-insensitive). Changing it starts the new proxy on the server and needs the deploy permission.
"traefik" | "caddy" | "nginx" | "none"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://app.coolify.io/api/v1/servers/string/proxy" \ -H "Content-Type: application/json" \ -d '{}'{ "proxy_type": "string", "status": "string", "redirect_enabled": true, "redirect_url": "string", "proxy_error_page": "string", "generate_exact_labels": true, "traefik_certificate_resolver": "string", "configuration": "string"}{ "message": "Invalid token."}{ "message": "Unauthenticated."}{ "message": "Resource not found."}{ "message": "Validation error.", "errors": { "name": [ "The name field is required." ], "api_url": [ "The api url field is required.", "The api url format is invalid." ] }}Update log drain settings PATCH
Update New Relic, Axiom, or custom log drain settings for a server owned by the authenticated team. Needs a token with the write and deploy permissions. Custom configs cannot use the lua, wasm, exec, exec_wasi, or file plugins, @INCLUDE, or plugins_file, and the parser file can only contain [PARSER] and [MULTILINE_PARSER] sections.
Update Sentinel settings PATCH
Update Sentinel settings for a server owned by the authenticated team. Changing token/metrics timing fields may restart Sentinel. Needs a token with the write and deploy permissions.
