API 参考 / admin

驳回一条收件(平台超管)

POST /api/v1/admin/support/intake/{intakeId}/reject · adminRejectSupportIntake

垃圾 / 重复 / 信息不足的收件驳回(B-00113 / 决策 D6):只改收件箱状态,不碰业务对象。 与转正式单共用同一把并发闸:只有仍处 pending 的条目能被驳回,否则 409。要求平台超管。

本接口要求浏览器会话。Bearer API Token 无法调用——Token 的生命周期管理必须在网页端完成。

参数

intakeId(必填)
string

请求体

note
string

响应字段 · 200

id(必填)
string
type(必填)
enum;取值:bug / feature
status(必填)
enum;取值:pending / converted / rejected
title(必填)
string
description(必填)
string
module(必填)
string
severity(必填)
string
role(必填)
string
contact(必填)
string —— 匿名提交者自填的联络邮箱;已登录提交恒为空
submitterUserId(必填)
string —— 服务端从已验证会话解析的 canonical userId;匿名提交为空
submitterEmail(必填)
string —— 服务端从会话解析出的登录邮箱;匿名提交为空
source(必填)
enum —— 仅作渠道标签;历史记录归一为 human;取值:human / agent
sourceMetadata(必填)
SupportSourceMetadata
sourceMetadata.pluginVersion
string
sourceMetadata.hostType
enum;取值:codex / claude_code
sourceMetadata.hostVersion
string
sourceMetadata.operationId
string
sourceMetadata.traceId
string
sourceMetadata.reproduction
string
attachments(必填)
SupportIntakeAttachmentNote[]
attachments[].id(必填)
string
attachments[].fileName(必填)
string
attachments[].mimeType(必填)
string
attachments[].size(必填)
integer
convertedProjectId
string
convertedObjectId
string
convertedDisplayKey
string
reviewedBy
string
reviewedAt
string
reviewNote
string
createdAt(必填)
string

错误

请求示例(curl)

curl -X POST "https://你的项目.workflow.games/api/v1/admin/support/intake/{intakeId}/reject" \
  -H "Authorization: Bearer wfp_…" \
  -H "content-type: application/json" \
  --data '{"note":"示例文本"}'

响应示例

HTTP/1.1 200
{
  "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": "示例文本"
}

合同真值:OpenAPI 3.1(0.1.0)。

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

Workflow 正在加载…