Moving Build Tasks to a Specified Group
Function
This API is used to move build tasks to a specified group.
Calling Method
For details, see Calling APIs.
URI
POST /v1/job/{project_id}/group/move
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition CodeArts project ID. For details about how to obtain the CodeArts project ID, see Obtaining a CodeArts Project ID. Constraints N/A. Range Use a 32-character string containing a mix of digits and letters. Default Value N/A. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
group_id |
No |
String |
Task group ID. |
jobs |
No |
Array of jobs objects |
Task group. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
Array of result objects |
Returned result. |
error |
String |
Returned error message. |
status |
String |
Returned status information. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Requests
POST https://{endpoint}/v1/job/{project_id}/group/move
Example Responses
Status code: 200
OK
{ "result" : [ { "job_id" : "e3916d5a189340f7a8dca4d5339135e2", "group_path_id" : "9ba77d8f7b7641389ef77d43a1b9b054.ed61be9beadf4eebbbbe3806157b1065.81c85f3b1bc34db3a1ce02df598c89e4" }, { "job_id" : "787ebbc0783b41af939e6666a79ba82d", "group_path_id" : "9ba77d8f7b7641389ef77d43a1b9b054.ed61be9beadf4eebbbbe3806157b1065.81c85f3b1bc34db3a1ce02df598c89e4" } ], "error" : null, "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
500 |
Internal Server Error |
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