删除项目
OpenAPI 契约
- 方法
- DELETE
- 路径
/api/v1/projects/{id}- 认证
- jwtBearer (bearer) OR automationKey (bearer)
- 响应状态
- 204 400 401 403 404 409 429 500
请求与响应 Schema
JSON
{
"requestBody": {},
"responses": {
"204": {
"description": "Project deleted",
"content": {}
},
"400": {
"description": "Invalid request",
"content": {
"application/json": {
"$ref": "#/components/schemas/RequestError"
}
}
},
"401": {
"description": "Authentication required or invalid",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"403": {
"description": "Authenticated but not permitted",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"404": {
"description": "Requested project or build was not found",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
},
"409": {
"description": "Request conflicts with current project state",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
},
"429": {
"description": "HTTP rate limit or API-key NCU usage limit exceeded",
"content": {
"application/json": {
"$ref": "#/components/schemas/RateLimitError"
}
}
},
"500": {
"description": "Unexpected server error",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}DELETE /api/v1/projects/{id} 接受 JWT 或带 project:write 的 nfy_ 密钥,并要求有效 project:manage capability。删除项目之前,它会解除相关构建记录的项目关联并删除直接 grant;但不承诺删除构建记录或其已存储产物。成功响应没有正文。
http
DELETE /api/v1/projects/{id}
Authorization: Bearer <access token>