---
title: "更新定时同步配置"
method: PUT
path: "/api/v1/config/sync-schedule"
tags: ["Config配置中心"]
---

# 更新定时同步配置

`PUT /api/v1/config/sync-schedule`

## Request body

- ModelUpdateSyncScheduleDto
  - `cronExpr` string, required — cron表达式
  - `id` integer, required — 配置ID
  - `keyTypes` string, required — 要同步的云厂商类型（JSON数组格式：[1,2,3]）
  - `name` string, required — 配置名称
  - `remark` string — 备注信息
  - `status` integer — 状态：1=启用，0=禁用

## Response `200`

OK

---

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