API 参考 / admin
POST /api/v1/admin/support/intake/{intakeId}/convert · adminConvertSupportIntake
人工确认后建正式单(B-00113 / 决策 D6):type=bug 建 type=bug 工作项,type=feature 建需求, 落平台客服配置里的支持项目、在其 TenantTx 内写并产 ChangeSet/Event(正常业务写,可追溯)。 落哪个项目由平台配置决定,不从请求体接收 projectId。 并发保护:只有仍处 pending 的条目能被转;已被别人转过或驳回过 → 409,绝不建出重复单。 建单成功但回写收件状态失败时返回 500 并打日志(正式单已建出,需人工核对)。要求平台超管。
本接口要求浏览器会话。Bearer API Token 无法调用——Token 的生命周期管理必须在网页端完成。
intakeId(必填)ownerIdnoteintake(必填)intake.id(必填)intake.type(必填)intake.status(必填)intake.title(必填)intake.description(必填)intake.module(必填)intake.severity(必填)intake.role(必填)intake.contact(必填)intake.submitterUserId(必填)intake.submitterEmail(必填)intake.source(必填)intake.sourceMetadata(必填)intake.sourceMetadata.pluginVersionintake.sourceMetadata.hostTypeintake.sourceMetadata.hostVersionintake.sourceMetadata.operationIdintake.sourceMetadata.traceIdintake.sourceMetadata.reproductionintake.attachments(必填)intake.attachments[].id(必填)intake.attachments[].fileName(必填)intake.attachments[].mimeType(必填)intake.attachments[].size(必填)intake.convertedProjectIdintake.convertedObjectIdintake.convertedDisplayKeyintake.reviewedByintake.reviewedAtintake.reviewNoteintake.createdAt(必填)objectId(必填)displayKey(必填)401:Problem 错误响应403:Problem 错误响应404:Problem 错误响应409:Problem 错误响应503:Problem 错误响应curl -X POST "https://你的项目.workflow.games/api/v1/admin/support/intake/{intakeId}/convert" \
-H "Authorization: Bearer wfp_…" \
-H "content-type: application/json" \
--data '{"ownerId":"018f3c2e-0000-7000-8000-000000000000","note":"示例文本"}'HTTP/1.1 201
{
"intake": {
"id": "018f3c2e-0000-7000-8000-000000000000",
"type": "bug",
"status": "pending",
"title": "示例标题",
"description": "一段描述文字",
"module": "示例文本",
"severity": "示例文本",
"role": "示例文本",
"contact": "示例文本",
"submitterUserId": "018f3c2e-0000-7000-8000-000000000000",
"submitterEmail": "[email protected]",
"source": "human",
"sourceMetadata": {
"pluginVersion": "示例文本",
"hostType": "codex",
"hostVersion": "示例文本"
},
"attachments": [
{
"id": "018f3c2e-0000-7000-8000-000000000000",
"fileName": "示例标题",
"mimeType": "示例文本",
"size": 1
}
],
"createdAt": "示例文本"
},
"objectId": "018f3c2e-0000-7000-8000-000000000000",
"displayKey": "示例文本"
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引