ListProjectTemplates - Get project templates
|
Applicable editions |
Central edition, Region edition |
Endpoint and authorization information
- Get the endpoint: Replace {domain} in the API request syntax.
- Get a personal access token.
- Get organizationId: Required only for the Central edition. Go to the Basic Information page in the Organization Management console to obtain your organization ID.
|
Product |
Resource |
Required permission |
|
Project Collaboration |
Project template |
Read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/projex/organizations/{organizationId}/projectTemplates
Region edition
GET https://{domain}/oapi/v1/projex/projectTemplates
Request headers
|
Parameter |
Type |
Required |
Description |
Example value |
|
x-yunxiao-token |
string |
Yes |
Personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
organizationId |
string |
path |
|
organizationId. |
|
Request examples
Central edition
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 edition
curl -X 'GET' \
'https://{domain}/oapi/v1/projex/projectTemplates' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
| - |
array |
|
|
| - |
object |
|
|
| creator |
object |
Modifier. |
|
| id |
string |
User ID. |
674d96abd497cd558d68**** |
| name |
string |
Username. |
user-name-xxx |
| description |
string |
Template description. |
Quickly and effectively implement Scrum, plan appropriately, establish a delivery rhythm, and continuously improve agile delivery capabilities |
| gmtCreate |
string |
Creation timestamp. |
|
| gmtModified |
string |
Update timestamp. |
|
| icon |
string |
Icon URL. |
test |
| id |
string |
ID. |
1111 |
| modifier |
object |
Modifier. |
|
| id |
string |
User ID. |
674d96abd497cd558d68**** |
| name |
string |
Username. |
user-name-xxx |
| name |
string |
Template name. |
Scrum Agile Delivery Space |
| type |
integer |
Template type. 0 = system, 4 = custom, 16 = instance. |
0 |
| withControl |
boolean |
Whether this is a control template. |
true |
Response example
[
{
"creator": {
"id": "674d96abd497cd558d68****",
"name": "user-name-xxx"
},
"description": "Quickly and effectively implement Scrum, plan appropriately, establish a delivery rhythm, and continuously improve agile delivery capabilities",
"gmtCreate": "",
"gmtModified": "",
"icon": "test",
"id": "1111",
"modifier": {
"id": "674d96abd497cd558d68****",
"name": "user-name-xxx"
},
"name": "Scrum Agile Delivery Space",
"type": 0,
"withControl": true
}
]
Error codes
For error codes of this operation, see Error Code Center.