ListProjectTemplates - 获取项目模板

更新时间:
复制 MD 格式

适用版本

中心版、Region

服务接入点与授权信息

产品

资源

所需权限

项目协作

项目模板

只读

请求语法

中心版

GET https://{domain}/oapi/v1/projex/organizations/{organizationId}/projectTemplates

Region

GET https://{domain}/oapi/v1/projex/projectTemplates

请求头

参数

类型

是否必填

描述

示例值

x-yunxiao-token

string

个人访问令牌。

pt-0fh3****0fbG_35af****0484

请求参数

参数

类型

位置

是否必填

描述

示例值

organizationId

string

path

  • 是:中心版

  • 否:Region

organizationId。

请求示例

中心版

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projectTemplates' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/projectTemplates' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

返回参数

参数

类型

描述

示例值

-

array

-

object

creator

object

修改人。

id

string

用户 id。

674d96abd497cd558d68****

name

string

用户名。

user-name-xxx

description

string

模板描述。

快速、有效的落地 Scrum,合理规划并形成交付节奏,持续提升敏捷交付能力

gmtCreate

string

创建时间的时间戳。

gmtModified

string

更新时间的时间戳。

icon

string

图标链接。

test

id

string

id。

1111

modifier

object

修改人。

id

string

用户 id。

674d96abd497cd558d68****

name

string

用户名。

user-name-xxx

name

string

模板名。

Scrum 敏捷交付空间

type

integer

模板类型 0-system/4-custom/16-instance。

0

withControl

boolean

是否是管控模板。

true

返回示例

[
    {
        "creator": {
            "id": "674d96abd497cd558d68****",
            "name": "user-name-xxx"
        },
        "description": "快速、有效的落地Scrum,合理规划并形成交付节奏,持续提升敏捷交付能力",
        "gmtCreate": "",
        "gmtModified": "",
        "icon": "test",
        "id": "1111",
        "modifier": {
            "id": "674d96abd497cd558d68****",
            "name": "user-name-xxx"
        },
        "name": "Scrum敏捷交付空间",
        "type": 0,
        "withControl": true
    }
]

错误码

访问错误码中心查看 API 相关错误码。