CreatePack
Description: Creates a new pack.
Path: rpa/openapi/raas/pack/CreatePack
Method: POST
Usage notes:
None.
Limitations:
For details on API call limits, see Call limits.
Request parameters:
Parameter | Type | Required | Example value | Description |
PackName | String | Yes | Pack 1 | The name of the pack. The name can be up to 50 characters long, including Chinese characters, English letters, and symbols. The name cannot contain the following special characters: |
RobotIds | Array of String. Serialization method: simple. | No | ["313 ****** E2F15731AA1683F16E7A55FD","65796333 ****** 78CAC2FCBD5BD0B4EC"] | A list of service robots in the pack.
|
Response parameters:
For information about common response parameters, see Response Structure. The following table describes the fields in the data object.
Parameter | Type | Example value | Description |
PackId | String | bv2XPrDl | The pack ID. |
Result | Array of Object. Serialization: | [{"RobotId":"3137******F15731AA1683F16E7A55FD","CaseResult": {"code": "36301","msgCode": "raas.robot.robotNotExist","msg": "The robot does not exist."}}, {"RobotId": "657963******D178CAC2FCBD5BD0B4EC","CaseResult": {"code": "0","msgCode":"result.success","msg": "The call is successful."}}] | The operation result for each robot. For a description of the fields of an object in the |
The following table describes the fields of an object in the Result array.
Parameter | Type | Example value | Description |
RobotId | String | 11DC817A ****** 463B1E538436035653 | The robot ID. |
CaseResult | Object. Serialization method: JSON. | "CaseResult": { "code": 0, "msgCode": "result.success", "msg": "The call is successful." } | The processing result for this robot. |
Request example:
https://console-rpa.aliyun.com/rpa/openapi/raas/pack/CreatePack?
&PackName=New-Example-Pack
&RobotIds=%5B6579633385B0D178CAC2FCBD5BD0B4EC%5D
&Common request parametersResponse example:
{
"requestId": "c7a5c572-****-****-****-7947556c3b29",
"success": true,
"code": 0,
"msg": "The call is successful.",
"msgCode": "result.success",
"data": {
"PackId": "beTnHerS",
"Result": [{
"RobotId": "6579633385******AC2FCBD5BD0B4EC",
"CaseResult": {
"code": 0,
"msgCode": "result.success",
"msg": "The call is successful."
}
}]
},
"pager": null,
"instanceId": null
}