PATCH管理接口

编辑反馈

编辑指定反馈内容与评分。

URL

/api/v1/admin/projects/{projectKey}/feedbacks/{id}

鉴权方式

需要管理员 JWT 或 API Key,二者等价(Authorization: Bearer <token>)

请求参数

Path 参数

名称类型必填说明
projectKeystring项目主键 project_key(大小写不敏感)
idstring记录主键 id

Header 参数

名称类型必填说明
AuthorizationstringBearer <管理员 JWT 或 API Key>

请求体

{
  "rating": 4,
  "content": "补充说明:偶发网络超时。",
  "is_hidden": true
}

响应示例

200 更新后的反馈

{
  "id": "fb-001",
  "user_id": "user-001",
  "rating": 5,
  "content": "更新检查很好用。",
  "contact": "[email protected]",
  "is_hidden": false,
  "platform": "windows",
  "platform_version": "11",
  "custom_data": {
    "app_version": "1.2.0"
  },
  "ip": "203.0.113.9",
  "user_agent": "verhub-sdk/1.0",
  "country_code": "CN",
  "country_name": "中国",
  "region_name": "广东省",
  "city": "深圳",
  "created_at": 1760000000
}
PATCH

Try It Out

请求 URL 预览

/api/v1/admin/projects/verhub/feedbacks/ver-001