CreateChangeRequest
Creates an application change.
Try it now
Test
RAM authorization
Request syntax
POST /appstack/apps/{appName}/changeRequests HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appName |
string |
Yes |
The application name. |
app-name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
No |
The enterprise ID. |
66c0c9fffeb86b450c199fcd |
| body |
object |
No |
The request body. |
|
| title |
string |
Yes |
The title. |
Change title |
| ownerId |
string |
Yes |
The change owner. |
68ef9a2b4c1d8e0012345678 |
| ownerAccountId |
string |
No |
The Alibaba Cloud UID of the owner. |
1332695887xxxxxx |
| appCodeRepoSn |
string |
Yes |
The unique identifier of the application code repository. |
sn123 |
| branchName |
string |
Yes |
The branch name. |
hotfix/20240524 |
| autoDeleteBranchWhenEnd |
boolean |
No |
Specifies whether to automatically delete the branch after the change is completed. |
false |
| createBranch |
boolean |
No |
Specifies whether to create a new branch. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
ChangeRequestVO |
||
| sn |
string |
The unique identifier. |
ce51b31b996246ecaf874736838360b2 |
| appName |
string |
The application name. |
app-name |
| state |
string |
The status. |
DEVELOPING |
| name |
string |
The change name. |
Change name |
| type |
string |
The change status. |
APP |
| appCodeRepoSn |
string |
The unique identifier of the code repository. |
sn123 |
| branch |
string |
The code branch for the change. |
hotfix/20240524 |
| ownerId |
string |
The Yunxiao ID of the owner. |
owner-id-123 |
| ownerAccountId |
string |
The Alibaba Cloud account ID of the owner. |
account-id-123 |
| originBranch |
string |
The source branch of the code branch. |
master |
| originBranchRevisionSha |
string |
The revision SHA of the source branch. |
revision-123 |
| creatorId |
string |
The Yunxiao ID of the creator. |
create-id-123 |
| creatorAccountId |
string |
The Alibaba Cloud account ID of the creator. |
create-account-123 |
| gmtCreate |
string |
The creation time. |
2024-01-01 00:00:00 |
| gmtModified |
string |
The modification time. |
2024-01-01 00:00:00 |
| autoDeleteBranchWhenEnd |
boolean |
Indicates whether the branch is automatically deleted after the change is completed. |
false |
Examples
Success response
JSON format
{
"sn": "ce51b31b996246ecaf874736838360b2",
"appName": "app-name",
"state": "DEVELOPING",
"name": "变更名称",
"type": "APP",
"appCodeRepoSn": "sn123",
"branch": "hotfix/20240524",
"ownerId": "owner-id-123",
"ownerAccountId": "account-id-123",
"originBranch": "master",
"originBranchRevisionSha": "revision-123",
"creatorId": "create-id-123\n",
"creatorAccountId": "create-account-123",
"gmtCreate": "2024-01-01 00:00:00",
"gmtModified": "2024-01-01 00:00:00",
"autoDeleteBranchWhenEnd": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.