fbpx
PUThttps://api.spotinst.io/healthCheck/{HEALTHCHECK_ID}?accountId={ACCOUNT_ID}

Update existing HCS

URL Parameters

Parameter Type Description
HEALTHCHECK_ID * String

The HCS you want to update

Example: hcs-123
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

Headers
{
    "Authorization": "Bearer ${token}",
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "healthCheck": {
    "check": {
      "interval": 60,
      "unhealthyThreshold": 1,
      "healthyThreshold": 2
    }
  }
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "3ffcdc1d-5faa-497e-90a4-aafb96ba98cd",
    "url": "/healthCheck/hcs-123",
    "method": "PUT",
    "timestamp": "2016-05-17T10:37:11.563Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}