PinherePinhere 缺陷协作 API
POST/issues/{issueId}/complete
完成缺陷
领取凭证或网站账号写入完成状态与摘要。
Pinhere 项目、Origin、缺陷、私有截图、Webhook、PAT 与 Chrome 扩展 OAuth API;覆盖固定 PontxSpec 中全部 34 个 Endpoint。Hub 提供文档和本地 SDK/CLI,不代理任何请求。
请求
- operationId
completeIssue- 服务器
https://pinhere-jasonhzqs-projects.vercel.app/api/v1- 认证
- pinherePat, websiteSession, extensionOAuth
请求参数
issueId
pathstring必填
缺陷 ID。
iss_example
Idempotency-Key
headerstring
同一账号与 Endpoint 下保留 24 小时;不同请求复用会返回 409。
example-idempotency-key
Body 参数
Content-Type: application/json
字段: summary
响应
200
objectapplication/json
缺陷已完成。
字段: data
403
ErrorResponseapplication/json
调用方不是领取方。
字段: error
409
ErrorResponseapplication/json
缺陷状态无效。
字段: error
default
ErrorResponseapplication/json
标准错误响应。
字段: error
{
"data": {
"id": "iss_example",
"userId": "usr_example",
"projectId": "prj_example",
"title": "Checkout button does not submit",
"description": "Clicking the button leaves the page unchanged.",
"pageUrl": "https://shop.example.com/checkout",
"dom": {
"cssSelector": "#checkout-button",
"xpath": "//*[@id='checkout-button']",
"tagName": "BUTTON",
"attributes": {},
"text": "Submit order",
"outerHTML": "<button id=\"checkout-button\">Submit order</button>",
"viewport": {
"width": 1440,
"height": 900,
"devicePixelRatio": 2
},
"boundingRect": {
"x": 1040,
"y": 720,
"width": 180,
"height": 44
}
},
"status": "open"
}
}