API 参考 / requirement-graph

解除两个需求的引用关系

DELETE /api/v1/requirements/{requirementId}/references/{targetRequirementId} · unbindRequirementReference

无向关系按 canonical UUID 对定位;关系不存在也返回 204,便于 Agent 幂等收敛。

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

参数

requirementId(必填)
string —— 小写、带连字符的 canonical UUID;不接受展示单号或首尾空白。
targetRequirementId(必填)
string —— 小写、带连字符的 canonical UUID;不接受展示单号或首尾空白。

响应 · 204

关系已解除或原本不存在

错误

请求示例(curl)

curl -X DELETE "https://你的项目.workflow.games/api/v1/requirements/{requirementId}/references/{targetRequirementId}" \
  -H "Authorization: Bearer wfp_…"

响应示例

HTTP/1.1 204
{}

合同真值:OpenAPI 3.1(0.1.0)。

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

Workflow 正在加载…