Modifying the Change Status
Function
This API is used to modify the change status.
Calling Method
For details, see Calling APIs.
URI
PUT /v2/{cloudProjectId}/change-request/{changeRequestId}/status/update
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
cloudProjectId |
Yes |
String |
Project ID. |
changeRequestId |
Yes |
String |
Change ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
status |
Yes |
String |
Change status. The value can be developing, to_be_released, releasing, released, or revoked. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
String |
Definition: Change ID. Value range: The value consists of 32 characters, including digits and letters. |
component_id |
String |
Definition: Microservice ID. Value range: The value consists of 32 characters, including digits and letters. |
status |
String |
Definition: Status. Value range: N/A |
title |
String |
Definition: Title. Value range: N/A |
repos |
Array of repos objects |
Definition: Code repository of a change. Value range: N/A |
workitem_ids |
Array of strings |
Definition: Work item ID. Value range: N/A |
release_time |
String |
Definition: Release time. Value range: N/A |
creator_id |
String |
Definition: Creator ID. Value range: The value consists of 32 characters, including digits and letters. |
creator_name |
String |
Definition: Creator name. Value range: N/A |
create_time |
String |
Definition: Creation time. Value range: N/A |
updater_id |
String |
Definition: Updater ID. Value range: The value consists of 32 characters, including digits and letters. |
updater_name |
String |
Definition: Updater name. Value range: N/A |
update_time |
String |
Definition: Update time. Value range: N/A |
Parameter |
Type |
Description |
---|---|---|
repo_id |
String |
Definition: Repo ID. Value range: N/A |
http_url |
String |
Definition: HTTP address of the code repository. Value range: N/A |
git_url |
String |
Definition: Git address of the code repository. Value range: N/A |
feature_branch |
String |
Definition: Feature branch. Value range: N/A |
main_branch |
String |
Definition: Default branch. Value range: N/A |
delete_branch_after_released |
Boolean |
Definition: Whether to delete the feature branch after release. Value range:
|
Example Requests
PUT http://{endpoint}/v2/2d09f712e9504b61b034cc8f40e475a8/change-request/da50ce1a874c4521975b0feda0dedd4c/status/update?status=to_be_released
Example Responses
Status code: 200
ok
{ "id" : "da50ce1a874c4521975b0feda0dedd4c", "component_id" : "f7ced2341b204d2b82c607c6f0de5b4a", "status" : "to_be_released", "title" : "aaa", "repos" : [ ], "workitem_ids" : null, "release_time" : "1719221365", "creator_id" : "05d8ca972f114765a8984795a8aa4d41", "creator_name" : "p_test5", "create_time" : "1719217203", "updater_id" : "05d8ca972f114765a8984795a8aa4d41", "updater_name" : "p_test5", "update_time" : "1719221365" }
Status Codes
Status Code |
Description |
---|---|
200 |
ok |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot