---
title: "PUT /projects/{project_id}/http-checks/{check_id}"
method: PUT
path: "/projects/{project_id}/http-checks/{check_id}"
tags: ["HTTP Checks"]
---

# PUT /projects/{project_id}/http-checks/{check_id}

`PUT /projects/{project_id}/http-checks/{check_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/http-checks/{check_id}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `check_id` integer, required

## Request body

- SaveHttpCheck: Credentials and recipe headers are write-only and encrypted at rest. A check reads at most one of `env_var_id`, `secret_id` and `credential`.
  - `credential` string, nullable
  - `enabled` boolean
  - `env_var_id` integer, nullable
  - `interval_seconds` integer
  - `kind` 'http' | 'local': `http` (default) calls an endpoint; `local` reads expiring items (certificates, SSH certificates, OpenPGP keys, kubeconfigs, JWTs) on this host.
  - `local` LocalCheckSpec, nullable
    - `warning_days` integer[]: Warn when any expiring item in the value is this close to expiry.
  - `name` string, required
  - `secret_id` integer, nullable: Project secret to check. HTTP checks may only send a secret to the provider its value is recognized as; local checks never send it.
  - `spec` HttpCheckSpec, nullable: This is a declarative HTTP recipe, never executable code. Headers may contain secrets: hosts must encrypt this specification at rest.
    - `accepted_statuses` integer[], required
    - `credential_header` string, nullable: Credential injection is separate from detection and always explicitly selected.
    - `credential_prefix` string
    - `expiration` ExpirationRule, nullable
      - `field` union, required
        - object
          - `kind` 'header', required
          - `value` string, required
        - object
          - `kind` 'json_pointer', required
          - `value` string, required
      - `warning_days` integer[], required
    - `headers` object
    - `method` 'get' | 'head', required
    - `numeric_rules` NumericRule[]
      - `comparison` 'below' | 'above', required
      - `critical` number, double, nullable
      - `field` union, required
        - object
          - `kind` 'header', required
          - `value` string, required
        - object
          - `kind` 'json_pointer', required
          - `value` string, required
      - `name` string, required
      - `warning` number, double, required
    - `url` string, required

## Response `200`

Success

- HttpCheckView
  - `automatic_provider` string, nullable
  - `enabled` boolean, required
  - `env_var_id` integer, nullable
  - `id` integer, required
  - `interval_seconds` integer, required
  - `kind` 'http' | 'local', required: What a stored check does: HTTP checks call an issuer; local checks read expiring items (certificates, SSH certificates, OpenPGP keys, kubeconfigs, JWTs) on this host and never transmit the value.
  - `last_checked_at` string, date-time, nullable
  - `name` string, required
  - `next_check_at` string, date-time, required
  - `project_id` integer, required
  - `result` VerificationResult, nullable
    - `checked_at` string, date-time, required
    - `findings` Finding[], required
      - `code` string, required
      - `message` string, required
      - `status` 'healthy' | 'warning' | 'error' | 'unknown', required
    - `status` 'healthy' | 'warning' | 'error' | 'unknown', required
  - `secret_id` integer, nullable

## Other responses

- `400`: Invalid configuration
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Check busy
- `500`: Internal error

## Changes

- **2026-10-05** `4b228ebed583`: 1 info
  - endpoint added
- **2026-10-05** `63a80791dc58`: 1 breaking
  - api path removed without deprecation
- **2026-10-04** `9ad47322cbb8`: 1 breaking, 8 warning, 7 info
  - the `spec` request property type changed from `object` to no type
  - removed the request property `spec/accepted_statuses`
  - removed the request property `spec/credential_header`
  - removed the request property `spec/credential_prefix`
  - …12 more
- **2026-09-21** `595a960621e0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/http-checks/:check_id/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
