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

# 创建定时同步配置

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

## Request body

- ModelCreateSyncScheduleDto
  - `cronExpr` string, required — cron表达式
  - `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)
