ExecuteChangeRequestReleaseStage - Execute a development stage pipeline

Updated at:

Applicable editions

Central edition, regional edition

Endpoints and authorization

  • To get an endpoint, replace {domain} in the API request syntax.

  • Get a personal access token.

  • Required only for the central edition. To get your organization ID, go to the Organization Management console and find the ID on the Basic Information page.

Product

Resource

Required permissions

AppStack

development stage

Read/Write

Request syntax

Central edition

POST https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/releaseWorkflows/{releaseWorkflowSn}/releaseStages/{releaseStageSn}:execute

Regional edition

POST https://{domain}/oapi/v1/appstack/apps/{appName}/releaseWorkflows/{releaseWorkflowSn}/releaseStages/{releaseStageSn}:execute

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Your personal access token.

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

Request parameters

Parameter

Type

In

Required

Description

Example

appName

string

path

Yes

The application name.

my-web-service

releaseWorkflowSn

string

path

Yes

The unique serial number of the release workflow.

3f472a12b15d4f418ad6227bb85f787c

releaseStageSn

string

path

Yes

The unique serial number of the release workflow stage.

6b4c53eee9a842c6a11235b29d002a81

organizationId

string

path

  • Yes: central edition

  • No: regional edition

The organization ID.

ec766e63aee3437d9a51f334d6exe671

-

object

body

No

The request body to execute the pipeline.

params

object

body

No

Parameters for the pipeline run. To trigger a run from a code repository branch, use the format "${sourceId}": "branch". You can also run the development stage with a change request. For an example, see the releaseBranchRepoInfo object in the example value.

{
"\${sourceId}": "branch",
"FLOW_INST_RUNNING_COMMENT": "Run comment 1",
"k1": "v1",
"releaseBranchRepoInfo": {
"baseBranch": {
"branchName": "master"
},
"featureBranchs": [
{
"branchName": "feature/20251216_1",
"changeRequestSn": "25500xxxxxxaaf9855"
}
],
"needCreateBranch": false,
"releaseBranch": {
"branchName": "release/xxxxx_release_4468686_2"
},
"repo": "https://codeup.aliyun.com/xxxxxx/codeDemo.git"
}
}



















Request examples

Central edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-web-service/releaseWorkflows/3f472a12b15d4f418ad6227bb85f787c/releaseStages/6b4c53eee9a842c6a11235b29d002a81:execute' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "params": {
            "${sourceId}": "branch",
            "FLOW_INST_RUNNING_COMMENT": "Run comment 1",
            "k1": "v1",
            "releaseBranchRepoInfo": {
                "baseBranch": {
                    "branchName": "master"
                },
                "featureBranchs": [
                    {
                        "branchName": "feature/20251216_1",
                        "changeRequestSn": "25500xxxxxxaaf9855"
                    }
                ],
                "needCreateBranch": false,
                "releaseBranch": {
                    "branchName": "release/xxxxx_release_4468686_2"
                },
                "repo": "https://codeup.aliyun.com/xxxxxx/codeDemo.git"
            }
        }
    }'

Regional edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/appstack/apps/my-web-service/releaseWorkflows/3f472a12b15d4f418ad6227bb85f787c/releaseStages/6b4c53eee9a842c6a11235b29d002a81:execute' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "params": {
            "${sourceId}": "branch",
            "FLOW_INST_RUNNING_COMMENT": "Run comment 1",
            "k1": "v1",
            "releaseBranchRepoInfo": {
                "baseBranch": {
                    "branchName": "master"
                },
                "featureBranchs": [
                    {
                        "branchName": "feature/20251216_1",
                        "changeRequestSn": "25500xxxxxxaaf9855"
                    }
                ],
                "needCreateBranch": false,
                "releaseBranch": {
                    "branchName": "release/xxxxx_release_4468686_2"
                },
                "repo": "https://codeup.aliyun.com/xxxxxx/codeDemo.git"
            }
        }
    }'

Response parameters

Parameter

Type

Description

Example

-

object

The result of the pipeline stage execution.

object

number

The ID of the pipeline run.

1

Response example

{
    "object": 1
}

Error codes

For a list of API error codes, see the Error Code Center.