API 参考 / schedule
PUT /api/v1/schedule/milestones/{milestoneId} · updateMilestone
更新里程碑字段(含 description 说明)。需要 manage_schedule。写命令在 TenantTx 内产 ChangeSet + milestone.updated Event。projectId 由子域租户上下文注入,不在 path。
鉴权:项目 API Token(Authorization: Bearer wfp_…)。详见 Agent 接入。
milestoneId(必填)titledescriptionclearDescriptionkindrequirementIdsreleaseWindowIdclearReleaseWindowtargetOnstatusreasonid(必填)displayKey(必填)title(必填)descriptionkind(必填)requirementIds(必填)releaseWindowIdtargetOn(必填)status(必填)createdAt(必填)updatedAt(必填)403:Problem 错误响应404:Problem 错误响应422:Problem 错误响应curl -X PUT "https://你的项目.workflow.games/api/v1/schedule/milestones/{milestoneId}" \
-H "Authorization: Bearer wfp_…" \
-H "content-type: application/json" \
--data '{"title":"示例标题","description":"一段描述文字","clearDescription":true}'HTTP/1.1 200
{
"id": "018f3c2e-0000-7000-8000-000000000000",
"displayKey": "示例文本",
"title": "示例标题",
"kind": "review",
"requirementIds": [
"018f3c2e-0000-7000-8000-000000000000"
],
"targetOn": "2026-08-01",
"status": "planned",
"createdAt": "示例文本",
"updatedAt": "2026-08-01"
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引