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

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

`PATCH /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

- SetHttpCheckEnabled
  - `enabled` boolean, required

## Response `200`

Updated check

- 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

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `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`: 2 info
  - added the optional property `secret_id` to the response with the `200` status
  - added the required property `kind` to the response with the `200` status
- **2026-09-21** `595a960621e0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/http-checks/:check_id/patch.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)
