Update system agent configuration¶
Update the configuration of the system agent in the current workspace.
PUT $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/system-agent-setups/{agent_id}
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token, target workspace ID and system agent ID.
Request body¶
Replace $WORKSPACE_ID, $AGENT_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl -X PUT "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/system-agent-setups/$AGENT_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"enabled": true,
"channels": {
"repository": {
"instance_id": "github-instance-id"
},
"code_analysis": {
"instance_id": "codex-instance-id"
},
"group_notification": {
"instance_id": "wecom-group-instance-id"
}
},
"knowledge_bases": {},
"project_scope": {
"project_id": "PVT_project_id"
}
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The workspace ID to which it belongs. |
|
string |
Yes |
The system agent ID of the updated configuration. |
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
boolean |
Yes |
Whether to enable the system agent. |
|
object |
No |
Channel selection configured by channel slot key. Each item can contain |
|
object |
No |
Warehouse name. |
|
string |
No |
Channel instance ID. Cannot be empty. |
|
object |
No |
Create a new instance configuration. |
|
string |
No |
Name. |
|
string |
No |
Description. |
|
object |
No |
Configuration. |
|
object |
No |
Credentials configuration. |
|
object |
No |
Code analysis slot. |
|
string |
No |
Channel instance ID. Cannot be empty. |
|
object |
No |
Create a new instance configuration. |
|
string |
No |
Name. |
|
string |
No |
Description. |
|
object |
No |
Configuration. |
|
object |
No |
Credentials configuration. |
|
object |
No |
Personal notification slot. |
|
string |
No |
Channel instance ID. Cannot be empty. |
|
object |
No |
Create a new instance configuration. |
|
string |
No |
Name. |
|
string |
No |
Description. |
|
object |
No |
Configuration. |
|
object |
No |
Credentials configuration. |
|
object |
No |
Group notification slot. |
|
string |
No |
Channel instance ID. Cannot be empty. |
|
object |
No |
Create a new instance configuration. |
|
string |
No |
Name. |
|
string |
No |
Description. |
|
object |
No |
Configuration. |
|
object |
No |
Credentials configuration. |
|
object |
No |
Observation slot. |
|
string |
No |
Channel instance ID. Cannot be empty. |
|
object |
No |
Create a new instance configuration. |
|
string |
No |
Name. |
|
string |
No |
Description. |
|
object |
No |
Configuration. |
|
object |
No |
Credentials configuration. |
|
object |
No |
Kubernetes trough. |
|
string |
No |
Channel instance ID. Cannot be empty. |
|
object |
No |
Create a new instance configuration. |
|
string |
No |
Name. |
|
string |
No |
Description. |
|
object |
No |
Configuration. |
|
object |
No |
Credentials configuration. |
|
object |
No |
Select the knowledge base configured by the knowledge base slot key. Each item can contain |
|
object |
No |
Model configuration, which can include |
|
string |
No |
Model configuration reference. |
|
string |
No |
Default model. |
|
object |
No |
Parameter override. |
|
object |
No |
Project scope configuration. |
|
string |
When the object is provided |
GitHub project ID. Cannot be empty. |
|
string |
No |
owner. |
|
string |
No |
Owner type. |
|
integer |
No |
number. |
|
string |
No |
title. |
|
string |
No |
address. |
|
string |
No |
host. |
|
array of object |
No |
Multi-package namespace scope. |
|
string |
When the object is provided |
Operations suite ID. |
|
string |
No |
Display name. |
|
string |
When the object is provided |
Kubernetes namespace. |
|
string |
No |
Log namespace. |
|
array of string |
No |
List of containers. |
|
boolean |
No |
Whether to enable. |
|
object |
No |
Reconciliation task configuration, including |
|
string |
When the object is provided |
Cron expressions. Cannot be empty. |
Currently, none of the three built-in agents support knowledge base binding. knowledge_bases can only be omitted or filled in with {}, non-empty objects will be rejected.
Fill in the necessary channel binding items according to the selected agent, and select one of the existing instance_id and create for each item.
github-issue-operatormust fill inrepository,code_analysisandgroup_notification,notificationis optional.github-pr-reviewermust also fill innotification.ops-agentis required to fill inobservability,kubernetes,repository,code_analysisandgroup_notification,notificationis optional.
Both GitHub agents must fill in project_scope, and non-empty suites is not accepted. ops-agent must be filled in with valid suites, project_scope or reconciliation_task is not supported. Required channels cannot be replaced with channels:{}.
Channel slot |
provider |
channel_type |
Required configuration. |
|---|---|---|---|
repository |
github |
github_app |
owner, repository. GitHub agent also requires callback_signature_configured=true. |
code_analysis |
codex |
codex_api |
Codex access is provided on a per-instance configuration. |
notification |
wecom |
wecom_app |
corp_id、agent_id。 |
group_notification |
wecom |
wecom_group_robot |
Swarm robot instance configuration. |
observability |
grafana |
grafana |
grafana_url。 |
kubernetes |
kubernetes |
kubernetes |
api_server。 |
create.name and description are strings, config and secrets are string mappings. The provider and channel type are determined by the binding. When selecting an existing instance, the instance must be in the active state.
When an optional binding item is omitted, the corresponding tool will be disabled and the original binding will not be automatically retained.
Successful response¶
{
"code": 0,
"data": {
"workspace_id": "",
"agent_id": "agent_01",
"name": "",
"description": "",
"definition": {
"agent_id": "",
"name": "",
"description": "",
"channel_slots": [],
"knowledge_slots": []
},
"configured": false,
"enabled": false,
"channels": {},
"knowledge_bases": {},
"model": {},
"callback_rule_enabled": false,
"callback_configured": false,
"callback_enabled": false
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
The workspace ID to which it belongs. |
|
string |
The system agent ID of the updated configuration. |
|
string |
Name. |
|
string |
Description. |
|
object |
Built-in agent definition. |
|
string |
agent ID. |
|
string |
Name. |
|
string |
Description. |
|
array of object |
Channel slot. |
|
string |
Key. |
|
string |
Name. |
|
string |
Description. |
|
string |
Provider. Values: |
|
string |
Channel type. Values: |
|
boolean |
Whether it is a required slot. |
|
array of object |
knowledge base slot. |
|
string |
Key. |
|
string |
Name. |
|
string |
Description. |
|
boolean |
Whether it is a required slot. |
|
array of string |
List of compatible table names. |
|
object |
GitHub project scope. |
|
string |
Name. |
|
string |
Description. |
|
string |
Channel slot key. |
|
boolean |
Whether it is a required slot. |
|
object |
Operations suite scope. |
|
string |
Name. |
|
string |
Description. |
|
boolean |
Whether it is a required slot. |
|
boolean |
Has it been configured? |
|
boolean |
Whether to enable. |
|
object |
Channel slot configuration. |
|
object or null |
Warehouse name. |
|
string |
logo. |
|
string |
The workspace ID to which it belongs. |
|
string |
Provider. Values: |
|
string |
Channel type. Values: |
|
string |
Name. |
|
string |
Description. |
|
string |
status. Values: |
|
string |
Credentials reference. |
|
string |
callback path. |
|
array of string |
Available management actions. |
|
array of string |
List of tool IDs. |
|
object |
Configuration. |
|
string |
Recent connection test status. Value: |
|
string |
Last connection test time. RFC 3339 time. |
|
string |
Recent connection test errors. |
|
object |
Tag mapping. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
object or null |
Code analysis slot. |
|
string |
logo. |
|
string |
The workspace ID to which it belongs. |
|
string |
Provider. Values: |
|
string |
Channel type. Values: |
|
string |
Name. |
|
string |
Description. |
|
string |
status. Values: |
|
string |
Credentials reference. |
|
string |
callback path. |
|
array of string |
Available management actions. |
|
array of string |
List of tool IDs. |
|
object |
Configuration. |
|
string |
Recent connection test status. Value: |
|
string |
Last connection test time. RFC 3339 time. |
|
string |
Recent connection test errors. |
|
object |
Tag mapping. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
object or null |
Personal notification slot. |
|
string |
logo. |
|
string |
The workspace ID to which it belongs. |
|
string |
Provider. Values: |
|
string |
Channel type. Values: |
|
string |
Name. |
|
string |
Description. |
|
string |
status. Values: |
|
string |
Credentials reference. |
|
string |
callback path. |
|
array of string |
Available management actions. |
|
array of string |
List of tool IDs. |
|
object |
Configuration. |
|
string |
Recent connection test status. Value: |
|
string |
Last connection test time. RFC 3339 time. |
|
string |
Recent connection test errors. |
|
object |
Tag mapping. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
object or null |
Group notification slot. |
|
string |
logo. |
|
string |
The workspace ID to which it belongs. |
|
string |
Provider. Values: |
|
string |
Channel type. Values: |
|
string |
Name. |
|
string |
Description. |
|
string |
status. Values: |
|
string |
Credentials reference. |
|
string |
callback path. |
|
array of string |
Available management actions. |
|
array of string |
List of tool IDs. |
|
object |
Configuration. |
|
string |
Recent connection test status. Value: |
|
string |
Last connection test time. RFC 3339 time. |
|
string |
Recent connection test errors. |
|
object |
Tag mapping. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
object or null |
Observation slot. |
|
string |
logo. |
|
string |
The workspace ID to which it belongs. |
|
string |
Provider. Values: |
|
string |
Channel type. Values: |
|
string |
Name. |
|
string |
Description. |
|
string |
status. Values: |
|
string |
Credentials reference. |
|
string |
callback path. |
|
array of string |
Available management actions. |
|
array of string |
List of tool IDs. |
|
object |
Configuration. |
|
string |
Recent connection test status. Value: |
|
string |
Last connection test time. RFC 3339 time. |
|
string |
Recent connection test errors. |
|
object |
Tag mapping. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
object or null |
Kubernetes trough. |
|
string |
logo. |
|
string |
The workspace ID to which it belongs. |
|
string |
Provider. Values: |
|
string |
Channel type. Values: |
|
string |
Name. |
|
string |
Description. |
|
string |
status. Values: |
|
string |
Credentials reference. |
|
string |
callback path. |
|
array of string |
Available management actions. |
|
array of string |
List of tool IDs. |
|
object |
Configuration. |
|
string |
Recent connection test status. Value: |
|
string |
Last connection test time. RFC 3339 time. |
|
string |
Recent connection test errors. |
|
object |
Tag mapping. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
object |
knowledge base reference. |
|
object |
model. |
|
string |
Model configuration reference. |
|
string |
Default model. |
|
object |
Parameter override. |
|
array of object |
Skill reference. |
|
string |
logo. |
|
string |
The workspace ID to which it belongs. |
|
string |
category. Values: |
|
string |
status. |
|
string |
Resource ID. |
|
string |
Name. |
|
string |
Display name. |
|
string |
Description. |
|
string |
Resource category. |
|
string |
execution phase. |
|
boolean |
Whether it can be bound. |
|
string |
Binding availability instructions. |
|
array of string |
Supported runtime environments. |
|
object |
Configuration. |
|
string |
Run tool visibility. |
|
string |
Binding source. |
|
boolean |
Is it manageable. |
|
object |
GitHub project scope. |
|
string |
GitHub project ID. |
|
string |
owner. |
|
string |
Owner type. |
|
integer |
number. |
|
string |
title. |
|
string |
address. |
|
string |
host. |
|
array of object |
Operation and maintenance inspection items. |
|
string |
Operations suite ID. |
|
string |
Display name. |
|
string |
Kubernetes namespace. |
|
string |
Log namespace. |
|
array of string |
List of containers. |
|
boolean |
Whether to enable. |
|
object |
Coordinate tasks. |
|
string |
logo. |
|
string |
status. Values: |
|
string |
Cron expressions. |
|
object |
Capacity inspection task. |
|
string |
logo. |
|
string |
status. Values: |
|
string |
Cron expressions. |
|
string |
Automation task ID. |
|
string |
Automation task status. Values: |
|
string |
Callback rule ID. |
|
boolean |
Whether the callback rule is enabled. |
|
boolean |
Whether the callback has been configured. |
|
boolean |
Whether callback is enabled. |
Error response¶
{
"code": 2,
"message": "invalid setup"
}
Path parameters: workspace_id is the target workspace ID, agent_id is the system agent ID to be updated. Both must be consistent with the URL and X-Workspace-ID request header.