---
title: "Update a job"
method: PATCH
path: "/api/jobs/{id}"
tags: ["Jobs"]
---

# Update a job

`PATCH /api/jobs/{id}`

Update job configuration. Only provided fields are changed.

## Request body

- JobUpdateRequest
  - `name` string
  - `description` string
  - `cronSchedule` string
  - `tests` JobTestRef[]
    - `id` string, uuid, required
  - `alertConfig` JobAlertConfig
    - `enabled` boolean
    - `notificationProviders` string[]
    - `alertOnFailure` boolean
    - `alertOnSuccess` boolean
    - `alertOnTimeout` boolean
    - `failureThreshold` integer
    - `recoveryThreshold` integer
    - `customMessage` string

## Response `200`

Job updated

- JobUpdateResponse
  - `id` string, uuid
  - `name` string
  - `description` string, nullable
  - `cronSchedule` string, nullable
  - `nextRunAt` string, date-time, nullable
  - `scheduledJobId` string, nullable
  - `testCount` integer

## Other responses

- `400` — Invalid job update payload
- `401` — Authentication required or token invalid
- `403` — Insufficient permissions
- `404` — Resource not found

---

[API](https://skmtc.dev/supercheck-io/apis/supercheck-api.md) · [All operations](https://skmtc.dev/supercheck-io/apis/supercheck-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supercheck-io/supercheck-api/revisions/81782deccf0e/schema)
