Pinhere/createProject

暂不支持在线调用 · 原因见下方

PinherePinhere 缺陷协作 API

POST/projects

创建项目

创建个人项目并可同时设置最多 50 个 Origin。

Pinhere 项目、Origin、缺陷、私有截图、Webhook、PAT 与 Chrome 扩展 OAuth API;覆盖固定 PontxSpec 中全部 34 个 Endpoint。Hub 提供文档和本地 SDK/CLI,不代理任何请求。

请求

operationId
createProject
服务器
https://pinhere-jasonhzqs-projects.vercel.app/api/v1
认证
pinherePat, websiteSession, extensionOAuth

请求参数

Idempotency-Key

headerstring

同一账号与 Endpoint 下保留 24 小时;不同请求复用会返回 409。

example-idempotency-key

Body 参数

ProjectInput必填

Content-Type: application/json

字段: namedescriptionorigins

响应

201

objectapplication/json

项目已创建。

字段: data

409

ErrorResponseapplication/json

Origin 已归属于其他项目。

字段: error

default

ErrorResponseapplication/json

标准错误响应。

字段: error

{
  "data": {
    "id": "prj_example",
    "userId": "usr_example",
    "name": "Checkout",
    "description": "Checkout experience issues",
    "createdAt": "2026-08-15T08:00:00.000Z",
    "updatedAt": "2026-08-15T08:00:00.000Z",
    "version": 1
  }
}