---
title: "Create a schedule or a manual trigger for the scan all job."
method: POST
path: "/system/scanAll/schedule"
tags: ["scanAll"]
---

# Create a schedule or a manual trigger for the scan all job.

`POST /system/scanAll/schedule`

This endpoint is for creating a schedule or a manual trigger for the scan all job, which scans all of images in Harbor.

## Headers

- `X-Request-Id` string

## Request body

- Schedule
  - `id` integer — The id of the schedule.
  - `status` string — The status of the schedule.
  - `creation_time` string, date-time — the creation time of the schedule.
  - `update_time` string, date-time — the update time of the schedule.
  - `schedule` ScheduleObj
    - `type` 'Hourly' | 'Daily' | 'Weekly' | 'Custom' | 'Manual' | 'None' | 'Schedule' — The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual', 'None' and 'Schedule'. 'Manual' means to trigger it right away, 'Schedule' means to trigger it by a specified cron schedule and 'None' means to cancel the schedule.
    - `cron` string — A cron expression, a time-based job scheduler.
    - `next_scheduled_time` string, date-time — The next time to schedule to run the job.
  - `parameters` object — The parameters of schedule job

## Response `201`

Created

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `412` — Precondition failed
- `500` — Internal server error

---

[API](https://skmtc.dev/goharbor/apis/harbor-api.md) · [All operations](https://skmtc.dev/goharbor/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goharbor/harbor-api/revisions/62d78801f8df/schema)
