Creates a DigitalEmployee.
Operation description
Creates a digital employee.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
starops:CreateDigitalEmployee |
create |
*DigitalEmployee
|
None |
|
Request syntax
POST /digital-employee HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The digital employee structure. |
|
| attributes |
object |
No |
The attributes. |
|
|
string |
No |
|||
| channel |
string |
No |
The channel type of the digital employee. If this parameter is not specified, the default channel is used. |
default |
| defaultRule |
string |
No |
The default rule of the digital employee. |
test |
| description |
string |
No |
The description of the digital employee. |
aaa |
| displayName |
string |
No |
The display name of the digital employee. |
digial-employee-test |
| knowledges |
object |
No |
The knowledge base list. |
|
| bailian |
array<object> |
No |
The Bailian knowledge base list. |
|
|
object |
No |
The Bailian knowledge base list. |
||
| attributes |
string |
No |
The knowledge base attributes. |
test |
| indexId |
string |
No |
The Bailian index ID. |
index-xxxx |
| region |
string |
No |
The region of the knowledge base. |
cn-beijing |
| workspaceId |
string |
No |
The Bailian workspace ID. |
llm-xxxxx |
| sop |
array<object> |
No |
The SOP knowledge base list. |
|
|
object |
No |
The SOP knowledge base. |
{ "type": "oss", "basePath": "docs/", "region": "cn-hangzhou", "endpoint": "oss-cn-hangzhou.aliyuncs.com", "bucket": "my-sop-bucket", "description": "sls sop" } |
|
| name |
string |
Yes |
The name of the digital employee. |
test |
| resourceGroupId |
string |
No |
The resource group ID. |
rg-ae******ey |
| roleArn |
string |
Yes |
The RAM role ARN. |
acs:ram::12345678912:role/testrole |
| sandboxNetworkPolicy |
object |
No |
The sandbox network ACL policy configuration of the digital employee. |
{"allowFqdns":["api.example.com"],"allowCidrs":["1.2.3.0/24","8.8.8.8"],"enableAcl":false} |
| allowCidrs |
array |
No |
The list of allowed CIDRs or IP addresses. A maximum of 50 entries are supported. |
|
|
string |
No |
|||
| allowFqdns |
array |
No |
The list of allowed FQDNs. A maximum of 50 entries are supported. |
|
|
string |
No |
|||
| enableAcl |
boolean |
No |
Specifies whether to enable the sandbox network ACL. |
false |
| tags |
array |
No |
The tags. |
|
| Tag |
No |
The tags. |
||
| toolPolicy |
object |
No |
The tool calling security policy configuration of the digital employee. |
{"aliyun":{"enable":true,"denyPolicy":["ecs:RunCommand","ecs:Delete*"],"autoPassPolicy":["log:Get*","log:List*"],"statements":[{"decision":"user_ack","product":"Sls","apiVersion":"2020-12-30","actions":["log:GetProject","log:CreateDashboard"]}]}} |
| aliyun |
object |
No |
The Aliyun MCP tool calling security policy configuration. |
{"enable":true,"denyPolicy":["ecs:RunCommand","ecs:Delete*"],"autoPassPolicy":["log:Get*","log:List*"],"statements":[{"decision":"user_ack","product":"Sls","apiVersion":"2020-12-30","actions":["log:GetProject","log:CreateDashboard"]}]} |
| autoPassPolicy |
array |
No |
The auto-pass policy. Each entry is a RAM Action string in the format of product:ApiName, product:Prefix*, or product:. If a match is found, the action is automatically approved without human confirmation. If this parameter is empty or not configured, built-in read-only actions (Get, List*, Describe*) are automatically approved. Actions that are not matched require human-in-the-loop (HIL) confirmation. |
["log:Get*","log:List*"] |
|
string |
No |
The RAM Action to automatically approve, in the format of , product:ApiName, or product:Prefix. |
log:Get* |
|
| denyPolicy |
array |
No |
The explicit deny policy, which has the highest priority. Each entry is a RAM Action string in the format of product:ApiName, product:Prefix*, or product:*. If this parameter is empty or not configured, no actions are actively denied. STAROps denies matched actions directly. The Pop side performs a secondary fallback check. |
["ecs:RunCommand","ecs:Delete*"] |
|
string |
No |
The denied RAM Action, in the format of , product:ApiName, or product:Prefix. |
ecs:Delete* |
|
| enable |
boolean |
No |
Specifies whether to enable the Aliyun MCP tool policy. The default value is enabled. The policy is disabled only when this parameter is explicitly set to false. |
true |
statements
deprecated
|
array<object> |
No |
[Deprecated] Use denyPolicy and autoPassPolicy instead. This parameter is still read during the transition period. Original description: The list of Aliyun OpenAPI tool policy statements. |
[{"decision":"user_ack","product":"Sls","apiVersion":"2020-12-30","actions":["log:GetProject","log:CreateDashboard"]}] |
|
object |
No |
A single Aliyun OpenAPI tool policy statement. |
{"decision":"user_ack","product":"Sls","apiVersion":"2020-12-30","actions":["log:GetProject","log:CreateDashboard"]} |
|
| actions |
array |
No |
The list of Aliyun OpenAPI actions, in the format of product:ApiName, product:Prefix*, or product:*. |
["log:GetProject","log:CreateDashboard"] |
|
string |
No |
log:GetProject |
||
apiVersion
deprecated
|
string |
No |
The Aliyun OpenAPI version that this statement applies to. |
2020-12-30 |
| decision |
string |
No |
The execution policy when this API is matched. |
user_ack |
| product |
string |
No |
The Aliyun OpenAPI product name that this statement applies to. |
Sls |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| name |
string |
The name of the digital employee. |
test |
| requestId |
string |
The request ID. |
3B311FD9-A60B-55E0-A896-A0C73********* |
Examples
Success response
JSON format
{
"name": "test",
"requestId": "3B311FD9-A60B-55E0-A896-A0C73*********\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.