---
title: "Update Health Check"
method: PUT
path: "/healthCheck/{HEALTHCHECK_ID}"
tags: ["Health Check Service"]
---

# Update Health Check

`PUT /healthCheck/{HEALTHCHECK_ID}`

Update existing HCS.

## Path parameters

- `HEALTHCHECK_ID` string, required

## Query parameters

- `accountId` string

## Request body

- object
  - `healthCheck` object, required — Group
    - `name` string — A logical name for the health check
    - `proxyAddress` string — The public hostname / IP where you installed the Spot HCS
    - `proxyPort` integer — The port of the HCS. Default: 80
    - `check` object
      - `protocol` string — The protocol to use to connect with the instance. Valid values: http https
      - `port` integer — The port to use to connect with the instance
      - `endpoint` string — The destination for the request
      - `unhealthyThreshold` integer — The number of consecutive failed health checks that must occur before declaring an instance unhealthy
      - `healthyThreshold` integer — The number of consecutive successful health checks that must occur before declaring an instance healthy
      - `interval` integer — The amount of time (in seconds) between each health check. Minimum value is 10
      - `timeout` integer — The amount of time (in seconds) to wait when receiving a response from the health check

## Other responses

- `200` — unresolved $ref
- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
