---
title: fastly service healthcheck update
summary: Update a healthcheck on a Fastly service version
url: https://www.fastly.com/documentation/reference/cli/service/healthcheck/update
---

Update a healthcheck on a Fastly service version

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--name` | Healthcheck name | Yes | - |
| `--version` | 'latest', 'active', 'staged', or the number of a specific Fastly service version | Yes | - |
| `--autoclone` | If the selected service version is not editable, clone it and use the clone. | No | - |
| `--check-interval` | How often to run the healthcheck in milliseconds | No | - |
| `--comment` | A descriptive note | No | - |
| `--expected-response` | The status code expected from the host | No | - |
| `--host` | Which host to check | No | - |
| `--http-version` | Whether to use version 1.0 or 1.1 HTTP | No | - |
| `--initial` | When loading a config, the initial number of probes to be seen as OK | No | - |
| `--method` | Which HTTP method to use | No | - |
| `--new-name` | Healthcheck name | No | - |
| `--path` | The path to check | No | - |
| `--service-id` | Service ID (falls back to FASTLY_SERVICE_ID, then fastly.toml) | No | - |
| `--service-name` | The name of the service | No | - |
| `--threshold` | How many healthchecks must succeed to be considered healthy | No | - |
| `--timeout` | Timeout in milliseconds | No | - |
| `--window` | The number of most recent healthcheck queries to keep for this healthcheck | No | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

