---
title: "Create a S.M.A.R.T. self-test schedule"
method: POST
path: "/disk/smart/self-test/schedules"
tags: ["Disk"]
---

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

`POST /disk/smart/self-test/schedules`

Create and validate a scheduled S.M.A.R.T. self-test for a physical disk

## Request body

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

## Response `201`

Created

- 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)
