Update system agent configuration

Update the configuration of the system agent in the current workspace.

HTTP
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.

Shell
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

workspace_id

string

Yes

The workspace ID to which it belongs.

agent_id

string

Yes

The system agent ID of the updated configuration.

Request body

Field

Type

Required

Description

enabled

boolean

Yes

Whether to enable the system agent.

channels

object

No

Channel selection configured by channel slot key. Each item can contain instance_id or create.

channels.repository

object

No

Warehouse name.

channels.repository.instance_id

string

No

Channel instance ID. Cannot be empty.

channels.repository.create

object

No

Create a new instance configuration.

channels.repository.create.name

string

No

Name.

channels.repository.create.description

string

No

Description.

channels.repository.create.config

object

No

Configuration.

channels.repository.create.secrets

object

No

Credentials configuration.

channels.code_analysis

object

No

Code analysis slot.

channels.code_analysis.instance_id

string

No

Channel instance ID. Cannot be empty.

channels.code_analysis.create

object

No

Create a new instance configuration.

channels.code_analysis.create.name

string

No

Name.

channels.code_analysis.create.description

string

No

Description.

channels.code_analysis.create.config

object

No

Configuration.

channels.code_analysis.create.secrets

object

No

Credentials configuration.

channels.notification

object

No

Personal notification slot.

channels.notification.instance_id

string

No

Channel instance ID. Cannot be empty.

channels.notification.create

object

No

Create a new instance configuration.

channels.notification.create.name

string

No

Name.

channels.notification.create.description

string

No

Description.

channels.notification.create.config

object

No

Configuration.

channels.notification.create.secrets

object

No

Credentials configuration.

channels.group_notification

object

No

Group notification slot.

channels.group_notification.instance_id

string

No

Channel instance ID. Cannot be empty.

channels.group_notification.create

object

No

Create a new instance configuration.

channels.group_notification.create.name

string

No

Name.

channels.group_notification.create.description

string

No

Description.

channels.group_notification.create.config

object

No

Configuration.

channels.group_notification.create.secrets

object

No

Credentials configuration.

channels.observability

object

No

Observation slot.

channels.observability.instance_id

string

No

Channel instance ID. Cannot be empty.

channels.observability.create

object

No

Create a new instance configuration.

channels.observability.create.name

string

No

Name.

channels.observability.create.description

string

No

Description.

channels.observability.create.config

object

No

Configuration.

channels.observability.create.secrets

object

No

Credentials configuration.

channels.kubernetes

object

No

Kubernetes trough.

channels.kubernetes.instance_id

string

No

Channel instance ID. Cannot be empty.

channels.kubernetes.create

object

No

Create a new instance configuration.

channels.kubernetes.create.name

string

No

Name.

channels.kubernetes.create.description

string

No

Description.

channels.kubernetes.create.config

object

No

Configuration.

channels.kubernetes.create.secrets

object

No

Credentials configuration.

knowledge_bases

object

No

Select the knowledge base configured by the knowledge base slot key. Each item can contain id or create.

model

object

No

Model configuration, which can include model_config_ref, default_model and params_override.

model.model_config_ref

string

No

Model configuration reference.

model.default_model

string

No

Default model.

model.params_override

object

No

Parameter override.

project_scope

object

No

Project scope configuration.

project_scope.project_id

string

When the object is provided

GitHub project ID. Cannot be empty.

project_scope.owner

string

No

owner.

project_scope.owner_type

string

No

Owner type.

project_scope.number

integer

No

number.

project_scope.title

string

No

title.

project_scope.url

string

No

address.

project_scope.host

string

No

host.

suites

array of object

No

Multi-package namespace scope.

suites[].suite_id

string

When the object is provided

Operations suite ID.

suites[].display_name

string

No

Display name.

suites[].namespace

string

When the object is provided

Kubernetes namespace.

suites[].log_namespace

string

No

Log namespace.

suites[].containers

array of string

No

List of containers.

suites[].enabled

boolean

No

Whether to enable.

reconciliation_task

object

No

Reconciliation task configuration, including cron_expression.

reconciliation_task.cron_expression

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-operator must fill in repository, code_analysis and group_notification, notification is optional.

  • github-pr-reviewer must also fill in notification.

  • ops-agent is required to fill in observability, kubernetes, repository, code_analysis and group_notification, notification is 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

JSON
{
  "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

data.workspace_id

string

The workspace ID to which it belongs.

data.agent_id

string

The system agent ID of the updated configuration.

data.name

string

Name.

data.description

string

Description.

data.definition

object

Built-in agent definition.

data.definition.agent_id

string

agent ID.

data.definition.name

string

Name.

data.definition.description

string

Description.

data.definition.channel_slots

array of object

Channel slot.

data.definition.channel_slots[].key

string

Key.

data.definition.channel_slots[].name

string

Name.

data.definition.channel_slots[].description

string

Description.

data.definition.channel_slots[].provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.definition.channel_slots[].channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.definition.channel_slots[].required

boolean

Whether it is a required slot.

data.definition.knowledge_slots

array of object

knowledge base slot.

data.definition.knowledge_slots[].key

string

Key.

data.definition.knowledge_slots[].name

string

Name.

data.definition.knowledge_slots[].description

string

Description.

data.definition.knowledge_slots[].required

boolean

Whether it is a required slot.

data.definition.knowledge_slots[].compatible_table_names

array of string

List of compatible table names.

data.definition.project_scope

object

GitHub project scope.

data.definition.project_scope.name

string

Name.

data.definition.project_scope.description

string

Description.

data.definition.project_scope.channel_slot_key

string

Channel slot key.

data.definition.project_scope.required

boolean

Whether it is a required slot.

data.definition.suite_scope

object

Operations suite scope.

data.definition.suite_scope.name

string

Name.

data.definition.suite_scope.description

string

Description.

data.definition.suite_scope.required

boolean

Whether it is a required slot.

data.configured

boolean

Has it been configured?

data.enabled

boolean

Whether to enable.

data.channels

object

Channel slot configuration.

data.channels.repository

object or null

Warehouse name.

data.channels.repository.id

string

logo.

data.channels.repository.workspace_id

string

The workspace ID to which it belongs.

data.channels.repository.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.repository.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.repository.name

string

Name.

data.channels.repository.description

string

Description.

data.channels.repository.status

string

status. Values: draft, active, disabled, archived.

data.channels.repository.credential_ref

string

Credentials reference.

data.channels.repository.callback_path

string

callback path.

data.channels.repository.capabilities

array of string

Available management actions.

data.channels.repository.tool_ids

array of string

List of tool IDs.

data.channels.repository.config

object

Configuration.

data.channels.repository.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.repository.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.repository.last_test_error

string

Recent connection test errors.

data.channels.repository.labels

object

Tag mapping.

data.channels.repository.created_at

string

Creation time. RFC 3339 time.

data.channels.repository.updated_at

string

Update time. RFC 3339 time.

data.channels.code_analysis

object or null

Code analysis slot.

data.channels.code_analysis.id

string

logo.

data.channels.code_analysis.workspace_id

string

The workspace ID to which it belongs.

data.channels.code_analysis.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.code_analysis.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.code_analysis.name

string

Name.

data.channels.code_analysis.description

string

Description.

data.channels.code_analysis.status

string

status. Values: draft, active, disabled, archived.

data.channels.code_analysis.credential_ref

string

Credentials reference.

data.channels.code_analysis.callback_path

string

callback path.

data.channels.code_analysis.capabilities

array of string

Available management actions.

data.channels.code_analysis.tool_ids

array of string

List of tool IDs.

data.channels.code_analysis.config

object

Configuration.

data.channels.code_analysis.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.code_analysis.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.code_analysis.last_test_error

string

Recent connection test errors.

data.channels.code_analysis.labels

object

Tag mapping.

data.channels.code_analysis.created_at

string

Creation time. RFC 3339 time.

data.channels.code_analysis.updated_at

string

Update time. RFC 3339 time.

data.channels.notification

object or null

Personal notification slot.

data.channels.notification.id

string

logo.

data.channels.notification.workspace_id

string

The workspace ID to which it belongs.

data.channels.notification.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.notification.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.notification.name

string

Name.

data.channels.notification.description

string

Description.

data.channels.notification.status

string

status. Values: draft, active, disabled, archived.

data.channels.notification.credential_ref

string

Credentials reference.

data.channels.notification.callback_path

string

callback path.

data.channels.notification.capabilities

array of string

Available management actions.

data.channels.notification.tool_ids

array of string

List of tool IDs.

data.channels.notification.config

object

Configuration.

data.channels.notification.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.notification.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.notification.last_test_error

string

Recent connection test errors.

data.channels.notification.labels

object

Tag mapping.

data.channels.notification.created_at

string

Creation time. RFC 3339 time.

data.channels.notification.updated_at

string

Update time. RFC 3339 time.

data.channels.group_notification

object or null

Group notification slot.

data.channels.group_notification.id

string

logo.

data.channels.group_notification.workspace_id

string

The workspace ID to which it belongs.

data.channels.group_notification.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.group_notification.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.group_notification.name

string

Name.

data.channels.group_notification.description

string

Description.

data.channels.group_notification.status

string

status. Values: draft, active, disabled, archived.

data.channels.group_notification.credential_ref

string

Credentials reference.

data.channels.group_notification.callback_path

string

callback path.

data.channels.group_notification.capabilities

array of string

Available management actions.

data.channels.group_notification.tool_ids

array of string

List of tool IDs.

data.channels.group_notification.config

object

Configuration.

data.channels.group_notification.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.group_notification.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.group_notification.last_test_error

string

Recent connection test errors.

data.channels.group_notification.labels

object

Tag mapping.

data.channels.group_notification.created_at

string

Creation time. RFC 3339 time.

data.channels.group_notification.updated_at

string

Update time. RFC 3339 time.

data.channels.observability

object or null

Observation slot.

data.channels.observability.id

string

logo.

data.channels.observability.workspace_id

string

The workspace ID to which it belongs.

data.channels.observability.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.observability.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.observability.name

string

Name.

data.channels.observability.description

string

Description.

data.channels.observability.status

string

status. Values: draft, active, disabled, archived.

data.channels.observability.credential_ref

string

Credentials reference.

data.channels.observability.callback_path

string

callback path.

data.channels.observability.capabilities

array of string

Available management actions.

data.channels.observability.tool_ids

array of string

List of tool IDs.

data.channels.observability.config

object

Configuration.

data.channels.observability.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.observability.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.observability.last_test_error

string

Recent connection test errors.

data.channels.observability.labels

object

Tag mapping.

data.channels.observability.created_at

string

Creation time. RFC 3339 time.

data.channels.observability.updated_at

string

Update time. RFC 3339 time.

data.channels.kubernetes

object or null

Kubernetes trough.

data.channels.kubernetes.id

string

logo.

data.channels.kubernetes.workspace_id

string

The workspace ID to which it belongs.

data.channels.kubernetes.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.kubernetes.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.kubernetes.name

string

Name.

data.channels.kubernetes.description

string

Description.

data.channels.kubernetes.status

string

status. Values: draft, active, disabled, archived.

data.channels.kubernetes.credential_ref

string

Credentials reference.

data.channels.kubernetes.callback_path

string

callback path.

data.channels.kubernetes.capabilities

array of string

Available management actions.

data.channels.kubernetes.tool_ids

array of string

List of tool IDs.

data.channels.kubernetes.config

object

Configuration.

data.channels.kubernetes.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.kubernetes.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.kubernetes.last_test_error

string

Recent connection test errors.

data.channels.kubernetes.labels

object

Tag mapping.

data.channels.kubernetes.created_at

string

Creation time. RFC 3339 time.

data.channels.kubernetes.updated_at

string

Update time. RFC 3339 time.

data.knowledge_bases

object

knowledge base reference.

data.model

object

model.

data.model.model_config_ref

string

Model configuration reference.

data.model.default_model

string

Default model.

data.model.params_override

object

Parameter override.

data.skill_refs

array of object

Skill reference.

data.skill_refs[].id

string

logo.

data.skill_refs[].workspace_id

string

The workspace ID to which it belongs.

data.skill_refs[].kind

string

category. Values: skill, tool, knowledge_base.

data.skill_refs[].status

string

status.

data.skill_refs[].resource_id

string

Resource ID.

data.skill_refs[].name

string

Name.

data.skill_refs[].display_name

string

Display name.

data.skill_refs[].description

string

Description.

data.skill_refs[].category

string

Resource category.

data.skill_refs[].phase

string

execution phase.

data.skill_refs[].bindable

boolean

Whether it can be bound.

data.skill_refs[].bindability_reason

string

Binding availability instructions.

data.skill_refs[].supported_runtimes

array of string

Supported runtime environments.

data.skill_refs[].config

object

Configuration.

data.skill_refs[].runtime_tool_visibility

string

Run tool visibility.

data.skill_refs[].binding_source

string

Binding source.

data.skill_refs[].manageable

boolean

Is it manageable.

data.project_scope

object

GitHub project scope.

data.project_scope.project_id

string

GitHub project ID.

data.project_scope.owner

string

owner.

data.project_scope.owner_type

string

Owner type.

data.project_scope.number

integer

number.

data.project_scope.title

string

title.

data.project_scope.url

string

address.

data.project_scope.host

string

host.

data.suites

array of object

Operation and maintenance inspection items.

data.suites[].suite_id

string

Operations suite ID.

data.suites[].display_name

string

Display name.

data.suites[].namespace

string

Kubernetes namespace.

data.suites[].log_namespace

string

Log namespace.

data.suites[].containers

array of string

List of containers.

data.suites[].enabled

boolean

Whether to enable.

data.reconciliation_task

object

Coordinate tasks.

data.reconciliation_task.id

string

logo.

data.reconciliation_task.status

string

status. Values: draft, creating, active, failed, disabled, archived.

data.reconciliation_task.cron_expression

string

Cron expressions.

data.capacity_patrol_task

object

Capacity inspection task.

data.capacity_patrol_task.id

string

logo.

data.capacity_patrol_task.status

string

status. Values: draft, creating, active, failed, disabled, archived.

data.capacity_patrol_task.cron_expression

string

Cron expressions.

data.automation_task_id

string

Automation task ID.

data.automation_task_status

string

Automation task status. Values: draft, creating, active, failed, disabled, archived.

data.callback_rule_id

string

Callback rule ID.

data.callback_rule_enabled

boolean

Whether the callback rule is enabled.

data.callback_configured

boolean

Whether the callback has been configured.

data.callback_enabled

boolean

Whether callback is enabled.

Error response

JSON
{
  "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.

Last updated on