CreateAssetVariable
Description: Creates a new asset variable.
Path: rpa/openapi/asset-variable/CreateAssetVariable
Method: POST
Usage notes:
Successful creation assigns the asset variable to the enterprise super administrator and the API caller by default.
The creator of the asset variable becomes its owner.
If the format of the asset variable value does not match the asset variable type, the API returns a parameter error.
If you set
UsageScopetoall, you cannot specify theAuthorizedMemberIdsparameter.
Request parameters:
Parameter | Type | Required | Example | Description |
AssetVariableName | String | Yes | exampelName | The asset variable name. |
AssetVariableNickName | String | Yes | exampleNickName | The asset variable nickname. |
AssetVariableType | String | Yes | password | The asset variable type. This is an enumerated value. Valid values: |
AssetVariableValue | JSON object | Yes | {"account":"test","password":"Rpa412******346"} | The asset variable value. This value is an unencrypted JSON object. Its structure depends on the asset variable type. The server parses and validates this value.
|
UsageScope | String | No | specified | The asset variable's usage scope. Defaults to
|
AuthorizedMemberIds | Array of strings | No | ["760526e3-****-****-****-430d8e51c448", "6c3c5113-****-****-****-b7d9b23d46be"] | Specifies the list of user IDs to grant permission to use the asset variable. This parameter is optional.
|
Response parameters:
For common response parameters, see Standard Responses. The following table describes the fields in the data object.
Parameter | Type | Example | Description |
AssetVariableId | String | 5743b65c-****-****-****-520af9bfab4a | The ID of the asset variable. |