update_resource
Update configuration fields of an existing Coolify resource—including deployment commands, domains, and health checks. Requires explicit confirmation and can trigger instant redeploy.
Instructions
Update configuration fields of an existing Coolify resource. FENCED: requires --allow-destructive and confirm:true (fields can rewrite deploy/start commands — a code-execution write). Pass the fields to change in fields (or fields_json); they are sent verbatim as the PATCH body. Applications commonly accept: name, description, domains (comma-separated URL list — NOT fqdn; dockercompose apps must use docker_compose_domains [{name, domain}] instead of domains), git_branch, build_pack, install_command, build_command, start_command, ports_exposes, base_directory, publish_directory, docker_registry_image_name, docker_registry_image_tag, pre_deployment_command, post_deployment_command, health_check_* settings, custom_docker_run_options, watch_paths. instant_deploy: true additionally queues an immediate redeploy after saving. Services accept only: name, description, instant_deploy, docker_compose_raw, connect_to_docker_network, urls [{name, url}], force_domain_override, is_container_label_escape_enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| uuid | Yes | The Coolify UUID of the resource. | |
| fields | No | Resource fields to update, sent verbatim as the request body — any field the Coolify endpoint accepts is allowed. | |
| confirm | No | Must be true to confirm the update (destructive: code-execution write). | |
| dry_run | No | If true, preview which fields would be updated without performing the action. | |
| instance | No | Coolify instance name (omit for the default). | |
| fields_json | No | JSON-encoded alternative to `fields` (mutually exclusive) for clients whose strict schema handling strips free-form object contents. |