SearchPrograms - Search programs
|
Applicable editions |
Central edition, Region edition |
Service endpoint and authorization
-
Get service endpoint: Replace {domain} in the API request syntax.
-
Get organization ID: Required only for the Central edition. Go to the organization management console and get the organization ID from the Basic Information page.
|
Product |
Resource |
Required permissions |
|
Projex |
project |
read-only |
Request syntax
Central edition
POST https://{domain}/oapi/v1/projex/organizations/{organizationId}/programs:search
Region edition
POST https://{domain}/oapi/v1/projex/programs:search
Request header
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
Your personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example |
|
organizationId |
string |
path |
|
The organization ID. |
|
| - |
object |
body |
No |
||
|
creator |
string |
body |
No |
Creator IDs. Separate multiple IDs with commas. |
5e6f6c1403283833284f3a95 |
|
gmtCreateEnd |
string |
body |
No |
The end of the creation time range. Format: |
2026-01-10 23:59:59 |
|
gmtCreateStart |
string |
body |
No |
The start of the creation time range. Format: |
2025-12-01 00:00:00 |
|
name |
string |
body |
No |
A keyword for a fuzzy search by name. |
dd |
|
orderBy |
string |
body |
No |
The sort field. Default: |
gmtCreate |
|
page |
integer |
body |
No |
The page number of the results to return. |
1 |
|
perPage |
integer |
body |
No |
The number of items per page. Valid range: 0 to 200. Default value: 20. |
20 |
|
sort |
string |
body |
No |
The sort order. Default value: |
desc |
|
status |
string |
body |
No |
Status IDs. Separate multiple IDs with commas. |
8a4058a71159b682541b0864,cc961a18adf770c6e423ccc5 |
|
users |
string |
body |
No |
User IDs used for extraConditions. Separate multiple IDs with commas. |
5e6f6c1403283833284f3a95 |
Request examples
Central edition
curl -X 'POST' \
'https://{domain}/oapi/v1/projex/organizations/{organizationId}/programs:search' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"creator": "5e6f6c1403283833284f3a95",
"gmtCreateEnd": "2026-01-10 23:59:59",
"gmtCreateStart": "2025-12-01 00:00:00",
"name": "dd",
"orderBy": "gmtCreate",
"page": 1,
"perPage": 20,
"sort": "desc",
"status": "8a4058a71159b682541b0864,cc961a18adf770c6e423ccc5",
"users": "5e6f6c1403283833284f3a95"
}'
Region edition
curl -X 'POST' \
'https://{domain}/oapi/v1/projex/programs:search' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"creator": "5e6f6c1403283833284f3a95",
"gmtCreateEnd": "2026-01-10 23:59:59",
"gmtCreateStart": "2025-12-01 00:00:00",
"name": "dd",
"orderBy": "gmtCreate",
"page": 1,
"perPage": 20,
"sort": "desc",
"status": "8a4058a71159b682541b0864,cc961a18adf770c6e423ccc5",
"users": "5e6f6c1403283833284f3a95"
}'
Response parameters
|
Parameter |
Type |
Description |
Example |
| - |
array |
||
| - |
object |
||
| creator |
object |
The program creator. |
|
|
id |
string |
The user ID. |
674d96abd497cd558d68**** |
|
name |
string |
The username. |
user-name-xxx |
|
customCode |
string |
The custom code. |
CCDD |
| customFieldValues |
array |
The custom field values. |
|
| - |
object |
A custom field value object. |
|
|
fieldId |
string |
The field ID. |
fieldId1 |
|
fieldName |
string |
The field name. |
field-test |
| values |
array |
||
| - |
object |
||
|
displayValue |
string |
The display name of the value. |
111 |
|
identifier |
string |
The unique identifier of the value. |
111 |
|
description |
string |
The program description. |
test |
|
gmtCreate |
string |
The creation time of the program. |
|
|
gmtModified |
string |
The last modification time of the program. |
|
|
icon |
string |
The program icon. |
xxx |
|
id |
string |
The program ID. |
1111 |
|
logicalStatus |
string |
The logical status of the program. |
normal |
| modifier |
object |
The user who last modified the program. |
|
|
id |
string |
The user ID. |
674d96abd497cd558d68**** |
|
name |
string |
The username. |
user-name-xxx |
|
name |
string |
The program name. |
project-test |
|
scope |
string |
The program visibility. Valid values: |
public |
| status |
object |
The program status. |
|
|
id |
string |
The status ID. |
1111 |
|
name |
string |
The status name. |
In Progress |
Response example
[
{
"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": "In Progress"
}
}
]
Response header
|
Parameter |
Description |
Example |
|
x-next-page |
The next page number. |
|
|
x-page |
The current page number. |
|
|
x-per-page |
The number of entries returned per page. |
|
|
x-prev-page |
The previous page number. |
|
|
x-total |
The total number of entries. |
|
|
x-total-pages |
The total number of pages. |
Error codes
For API error codes, see the Error Code Center.