---
title: "Update gc's schedule."
method: PUT
path: "/system/gc/schedule"
tags: ["gc"]
---

# Update gc's schedule.

`PUT /system/gc/schedule`

This endpoint is for update gc schedule.

## 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 `200`

Updated gc's schedule successfully.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `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)
