---
title: "Update a check"
method: PATCH
path: "/v2/projects/{projectIdOrName}/checks/{checkId}"
tags: ["checks-v2"]
---

# Update a check

`PATCH /v2/projects/{projectIdOrName}/checks/{checkId}`

Update an existing check.

## Path parameters

- `projectIdOrName` string, required
- `checkId` string, required

## Query parameters

- `teamId` string
- `slug` string

## Request body

- object
  - `name` string
  - `isRerequestable` boolean
  - `requires` 'build-ready' | 'deployment-url'
  - `targets` string[]
  - `blocks` 'build-start' | 'deployment-start' | 'deployment-alias' | 'deployment-promotion' | 'none'
  - `timeout` number

## Response `200`

- object
  - `id` string, required
  - `name` string, required
  - `ownerId` string, required
  - `projectId` string, required
  - `isRerequestable` false | true, required
  - `requires` 'build-ready' | 'deployment-url' | 'none', required
  - `source` union, required
    - object
      - `kind` 'integration', required
      - `integrationId` string, required
      - `integrationConfigurationId` string, required
      - `resourceId` string
      - `externalResourceId` string
    - object
      - `kind` 'webhook', required
      - `webhookId` string
    - object
      - `kind` 'git-provider', required
      - `provider` 'bitbucket' | 'github' | 'gitlab', required
      - `externalCheckName` string, required
  - `blocks` 'build-start' | 'deployment-alias' | 'deployment-promotion' | 'deployment-start' | 'none', required
  - `targets` string[], required
  - `sourceKind` 'git-provider' | 'integration' | 'vercel' | 'webhook' | 'integration' | 'webhook' | 'git-provider', required
  - `sourceIntegrationConfigurationId` string
  - `timeout` number, required
  - `createdAt` number, required
  - `updatedAt` number, required
  - `deletedAt` number

## Other responses

- `400` — One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `404`
- `410`
- `500`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/b4d86a3e3479/schema)
