UpdatePack
Description: Updates the details of a specified pack.
Path: rpa/openapi/raas/pack/UpdatePack
Method: POST
Usage:
None.
Limitations:
For details about API call limits, see Call limits.
Request parameters:
Parameter | Type | Required | Example | Description |
PackId | String | Yes | beTnHerS | The pack ID. |
PackName | String | No | Default Pack | The new name for the pack. If you omit this parameter, the name remains unchanged. The name can be up to 50 characters long and cannot contain the following special characters: |
RobotIds | Array of String, serialization format: simple | No | ["3137 ****** F15731AA1683F16E7A55FD","657963338 ****** 8CAC2FCBD5BD0B4EC"] | An array of robot IDs to assign to the pack.
|
Response parameters:
For details on common response fields, see Response. The following table describes the fields in the data object.
Parameter | Type | Example | Description |
PackId | String | beTnHerS | The pack ID. |
PackName | String | New Pack Name | The name of the pack. |
Result | Array of Object. Array serialization: simple. Object serialization: JSON. | [{"RobotId":"3137D13EE2F1573 ****** 3F16E7A55FD","CaseResult": {"code": "36301","msgCode": "raas.robot.robotNotExist","msg": "The robot does not exist."}}, {"RobotId": "6579633385B0D178CAC2FC ****** 0B4EC","CaseResult": {"code": "0","msgCode":"result.success","msg": "The request was successful."}}] | The processing result for each robot ID. For details about the fields in the Result object, see the following table. |
The following table describes the fields in the Result object.
Parameter | Type | Example | Description |
RobotId | String | 11DC8 ****** A4E463B1E538436035653 | The robot ID. |
CaseResult | Object. Serialization format: JSON. | "CaseResult": { "code": 0, "msgCode": "result.success", "msg": "The request was successful." } | The processing result for the specified robot ID. |
Request example:
https://console-rpa.aliyun.com/rpa/openapi/raas/pack/UpdatePack?
&PackId=beTnHerS
&PackName=Updated%20Pack%20Name
&RobotIds=%5B%223137D13EE2F15731AA1683F16E7A55FD%22%2C%22abc%22%5D
&Response example:
{
"requestId": "f13c4777-****-****-****-fc7603239bd4",
"success": true,
"code": 0,
"msg": "The request was successful.",
"msgCode": "result.success",
"data": {
"PackId": "beTnHerS",
"PackName": "Updated Pack Name",
"Result": [{
"RobotId": "abc",
"CaseResult": {
"code": 36301,
"msgCode": "raas.robot.robotNotExist",
"msg": "The robot does not exist."
}
}, {
"RobotId": "3137D13EE******1AA1683F16E7A55FD",
"CaseResult": {
"code": 0,
"msgCode": "result.success",
"msg": "The request was successful."
}
}]
},
"pager": null,
"instanceId": null
}