GetProjectAiConfig - Get project AI configuration

Updated at:

Retrieves the AI configuration of a specified project.

Applicable editions

Central edition, Region edition

Endpoint and authorization information

  • Get the endpoint: Replace {domain} in the API request syntax.

  • Obtain a personal access token. For more information, see Get a personal access token.

  • Obtain the organizationId: Required only for the Central edition. In the Organization Management console, go to the Basic Information page to obtain the organization ID.

Product

Resource

Required permission

Project Collaboration

Project

Read-only

Request syntax

Central edition

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

Region edition

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

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

The personal access token.

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

Request parameters

Parameter

Type

Location

Required

Description

Example value

organizationId

string

path

Yes: Central edition

No: Region edition

The organization ID. You can obtain it from the URL of the Organization Management console. Example: https://devops.aliyun.com/org-admin/6232xxxxxx42694c8cd/profile.

6232xxxxxx42694c8cd

id

string

path

Yes

The unique ID of the project. You can obtain it from the URL of the project details page. Example: https://devops.aliyun.com/projex/project/589c53d622cc8521793e08****. The project ID is the trailing segment.

589c53d622cc8521793e08****

Request example

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}/aiConfig' \
  -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/{id}/aiConfig' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

object

The AI configuration of the project.

requirementOptimize

string

The rule for AI-powered requirement optimization.

requirementSplit

string

The rule for AI-powered requirement splitting.

Response example

{
    "requirementOptimize": "",
    "requirementSplit": ""
}

Error codes

For more information about API error codes, see Error Code Center.