获取团队下项目列表
GEThttps://your-domain/openapi/v2/project/projects
获取团队下项目列表
History
Version | Changes |
---|---|
v3.14.117, v3.15.26 | Added in: v3.14.117, v3.15.26 |
Request
Query Parameters
teamID stringrequired
团队ID
limit integer
Possible values: <= 500
Default value: 500
本次请求要返回的数量,默认值为500,超过500或小于等于0会被设置为500
cursor string
本次请求的起始位置
Responses
- 200
- 401
- 403
- 404
- 500
请求成功
- application/json
- Schema
- Example (from schema)
Schema
data
object
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
errorData object
本次请求错误元数据
[
{
"result": "SUCCESS",
"data": {
"list": [
{
"id": "5f1b0b5b",
"name": "project1",
"createTime": 1691726809,
"owner": {
"id": "1b2b2b29",
"name": "owner"
},
"creator": {
"id": "1b2b2b29",
"name": "creator"
},
"status": {
"id": "to_do",
"name": "To Do",
"category": "to_do"
},
"statusCategory": "to_do",
"stickToTop": false,
"isArchive": false,
"archiveUser": {
"id": "5h2b2b29",
"name": "archiveUser"
},
"archiveTime": 1691726809,
"plannedStartDate": "2023-01-01",
"plannedEndDate": "2023-01-31"
}
],
"pageInfo": {
"count": 1,
"endCursor": "sample_end_cursor",
"hasNextPage": false,
"startCursor": "sample_start_cursor",
"totalCount": 1
}
}
}
]
如果身份验证凭据不正确或丢失,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
如果scope检验不通过,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
如果未找到资源对象,则返回
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
内部服务器错误
- application/json
- Schema
- Example (from schema)
Schema
result string
本次请求结果,SUCCESS|FAIL
errorCode string
本次请求错误码
errorMsg string
本次请求错误信息
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://your-domain/openapi/v2/project/projects' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear