ListVersions - Get version list

Updated at:

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

Version

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}/versions

Region edition

GET https://{domain}/oapi/v1/projex/projects/{id}/versions

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

id

string

path

Yes

Unique project identifier.

589c53d622cc8521793e08****

status

array[string]

query

No

Status values to filter by: TODO (not started), DOING (in progress), ARCHIVED (completed).

TODO,DOING

page

integer

query

No

Pagination parameter: page number.

1

perPage

integer

query

No

Pagination parameter: items per page.

20

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

organizationId.

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****/versions?status=TODO,DOING&name=test&page=1&perPage=20' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/projects/589c53d622cc8521793e08****/versions?status=TODO,DOING&name=test&page=1&perPage=20' \
  -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

Owner.

id

string

User ID.

674d96abd497cd558d68****

name

string

Username.

user-name-xxx

gmtCreate

string

Creation timestamp.

gmtModified

string

Update timestamp.

id

string

ID.

1111

locked

boolean

Indicates whether the version is locked.

false

modifier

object

Owner.

id

string

User ID.

674d96abd497cd558d68****

name

string

Username.

user-name-xxx

name

string

Version name.

1111

owners

array

Owners.

-

object

Owner.

id

string

User ID.

674d96abd497cd558d68****

name

string

Username.

user-name-xxx

publishDate

string

Release date.

startDate

string

Start date.

status

string

Status: TODO (not started), DOING (in progress), ARCHIVED (released).

TODO

Response example

[
    {
        "creator": {
            "id": "674d96abd497cd558d68****",
            "name": "user-name-xxx"
        },
        "gmtCreate": "",
        "gmtModified": "",
        "id": "1111",
        "locked": false,
        "modifier": {
            "id": "674d96abd497cd558d68****",
            "name": "user-name-xxx"
        },
        "name": "1111",
        "owners": [
            {
                "id": "674d96abd497cd558d68****",
                "name": "user-name-xxx"
            }
        ],
        "publishDate": "",
        "startDate": "",
        "status": "TODO"
    }
]

Response headers

Parameter

Description

Example value

x-next-page

Next page.

x-page

Current page.

x-per-page

Items per page.

x-prev-page

Previous page.

x-total

Total number of items.

x-total-pages

Total number of pages.

Error codes

Visit the Error Code Center to view API-related error codes.