适用版本 | 中心版、Region版 |
服务接入点与授权信息
产品 | 资源 | 所需权限 |
项目协作 | 项目 | 只读 |
请求语法
中心版
GET https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}
Region版
GET https://{domain}/oapi/v1/projex/projects/{id}
请求头
参数 | 类型 | 是否必填 | 描述 | 示例值 |
x-yunxiao-token | string | 是 | 个人访问令牌。 | pt-0fh3****0fbG_35af****0484 |
请求参数
参数 | 类型 | 位置 | 是否必填 | 描述 | 示例值 |
id | string | path | 是 | 项目唯一标识。 | 589c53d622cc8521793e08**** |
organizationId | string | path |
| organizationId。 |
请求示例
中心版
curl -X 'GET' \
'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region版
curl -X 'GET' \
'https://{domain}/oapi/v1/projex/projects/589c53d622cc8521793e08****' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
返回参数
参数 | 类型 | 描述 | 示例值 |
| - | object | ||
| creator | object | 修改人。 | |
| id | string | 用户 id。 | 674d96abd497cd558d68**** |
| name | string | 用户名。 | user-name-xxx |
| customCode | string | 编号。 | CCDD |
| customFieldValues | array | 自定义字段值。 | |
| - | object | 自定义字段值。 | |
| fieldId | string | 字段 ID。 | fieldId1 |
| fieldName | string | 字段名称。 | field-test |
| values | array | ||
| - | object | ||
| displayValue | string | 值的显示名称。 | 111 |
| identifier | string | 值的唯一标识。 | 111 |
| description | string | 描述。 | test |
| gmtCreate | string | 创建时间的时间戳。 | |
| gmtModified | string | 更新时间的时间戳。 | |
| icon | string | icon。 | xxx |
| id | string | id。 | 1111 |
| logicalStatus | string | 逻辑状态。 | normal |
| modifier | object | 修改人。 | |
| id | string | 用户 id。 | 674d96abd497cd558d68**** |
| name | string | 用户名。 | user-name-xxx |
| name | string | 名称。 | project-test |
| scope | string | 公开类型,枚举值为: public、private。 | public |
| status | object | 状态。 | |
| id | string | 状态 id。 | 1111 |
| name | string | 状态名称。 | 进行中 |
返回示例
{
"creator": {
"id": "674d96abd497cd558d68****",
"name": "user-name-xxx"
},
"customCode": "CCDD",
"customFieldValues": [
{
"fieldId": "fieldId1",
"fieldName": "field-test",
"values": [
{
"displayValue": "111",
"identifier": "111"
}
]
}
],
"description": "test",
"gmtCreate": "",
"gmtModified": "",
"icon": "xxx",
"id": "1111",
"logicalStatus": "normal",
"modifier": {
"id": "674d96abd497cd558d68****",
"name": "user-name-xxx"
},
"name": "project-test",
"scope": "public",
"status": {
"id": "1111",
"name": "进行中"
}
}
错误码
访问错误码中心查看 API 相关错误码。
该文章对您有帮助吗?