---
title: "Check cron script compile."
method: POST
path: "/kapis/devops.kubesphere.io/v1alpha2/namespaces/{devops}/checkCron"
tags: ["DevOps Pipeline"]
---

# Check cron script compile.

`POST /kapis/devops.kubesphere.io/v1alpha2/namespaces/{devops}/checkCron`

## Path parameters

- `devops` string, required

## Request body

- DevopsCronData
  - `cron` string, required — Cron script data.
  - `pipelineName` string — Pipeline name, if pipeline haven't created, not required'

## Response `200`

ok

- DevopsCheckCronRes
  - `lastTime` string — last run time.
  - `message` string — message
  - `nextTime` string — next run time.
  - `result` string — result e.g. ok, error

---

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