---
title: "Update a S.M.A.R.T. self-test schedule"
method: PUT
path: "/disk/smart/self-test/schedules/{id}"
tags: ["Disk"]
---

# Update a S.M.A.R.T. self-test schedule

`PUT /disk/smart/self-test/schedules/{id}`

Replace a configured S.M.A.R.T. self-test schedule

## Path parameters

- `id` integer, required

## Request body

- GithubComAlchemillahqSylveInternalServicesDiskSelfTestScheduleInput
  - `cronExpr` string, required
  - `device` string, required
  - `enabled` boolean
  - `testType` string, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalServicesDiskSelfTestScheduleView
  - `data` GithubComAlchemillahqSylveInternalServicesDiskSelfTestScheduleView
    - `cronExpr` string
    - `device` string
    - `diskKey` string
    - `enabled` boolean
    - `estimatedMinutes` integer
    - `id` integer
    - `lastError` string
    - `lastRunAt` string
    - `lastStatus` string
    - `model` string
    - `nextRunAt` string
    - `progressKnown` boolean
    - `progressPct` integer
    - `queuedAt` string
    - `serial` string
    - `testType` string
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `409` — Conflict
- `413` — Payload Too Large
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
