API 参考 / requirements

更新需求排期字段

PATCH /api/v1/requirements/{requirementId}/schedule · updateRequirementSchedule

Workflow OpenAPI 合同中的 updateRequirementSchedule 端点(PATCH /requirements/{requirementId}/schedule)。完整字段与示例以合同为准。

鉴权:项目 API Token(Authorization: Bearer wfp_…)。详见 Agent 接入。

参数

requirementId(必填)
string

请求体

releaseWindowId
string
startOn
string
targetOn
string
clearStartOn
boolean
clearTargetOn
boolean
reason(必填)
string

响应字段 · 200

id(必填)
string
displayKey(必填)
string
title(必填)
string
description
string
roomId(必填)
string
status(必填)
string
priority(必填)
enum;取值:P0 / P1 / P2 / P3
risk(必填)
enum;取值:high / medium / low
ownerId(必填)
string
creatorId(必填)
string
module(必填)
string
category(必填)
string
releaseWindowId(必填)
string
startOn(必填)
string
targetOn(必填)
string
progress(必填)
integer
estimateDays(必填)
integer
stateEnteredAt(必填)
string
createdAt(必填)
string
updatedAt(必填)
string

错误

请求示例(curl)

curl -X PATCH "https://你的项目.workflow.games/api/v1/requirements/{requirementId}/schedule" \
  -H "Authorization: Bearer wfp_…" \
  -H "content-type: application/json" \
  --data '{"reason":"操作原因(会记入变更流)","releaseWindowId":"018f3c2e-0000-7000-8000-000000000000","startOn":"2026-08-01"}'

响应示例

HTTP/1.1 200
{
  "id": "018f3c2e-0000-7000-8000-000000000000",
  "displayKey": "示例文本",
  "title": "示例标题",
  "roomId": "018f3c2e-0000-7000-8000-000000000000",
  "status": "示例文本",
  "priority": "P0",
  "risk": "high",
  "ownerId": "018f3c2e-0000-7000-8000-000000000000",
  "creatorId": "018f3c2e-0000-7000-8000-000000000000",
  "module": "示例文本",
  "category": "示例文本",
  "releaseWindowId": "018f3c2e-0000-7000-8000-000000000000",
  "startOn": "2026-08-01",
  "targetOn": "2026-08-01",
  "progress": 1,
  "estimateDays": 1,
  "stateEnteredAt": "示例文本",
  "createdAt": "示例文本",
  "updatedAt": "2026-08-01"
}

合同真值:OpenAPI 3.1(0.1.0)。

相关:Agent 接入指南 · 使用指南 · API 参考索引

Workflow 正在加载…