Update connection¶
Update the metadata, endpoint, or credential configuration of the agent connection.
PATCH $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/connections/{connection_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 a personal access token and target workspace ID that can access the target workspace.
Request body¶
curl -X PATCH "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/connections/$CONNECTION_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"name": "新的 MCP 服务"
}'
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Connection name. |
|
string |
No |
Connection instructions. |
|
string |
No |
Connection status. |
|
string |
No |
Connection type. |
|
string |
No |
Connection service address. |
|
string |
No |
Authentication type. |
|
string |
No |
Reference to saved credentials. |
|
array of string |
No |
List of connection capabilities. |
|
string |
No |
Connection owner user ID. |
|
string |
No |
Visible range. |
|
object |
No |
Connection configuration. |
|
object |
No |
label. |
|
object |
No |
Note. |
|
object |
No |
Extended metadata. |
|
object |
No |
Credentials, which can include bearer_token, api_key, basic_username, basic_password, or custom_headers. |
Updates cannot change the connection type. The endpoint address, transport method, and authentication method collectively identify the MCP connection. After creation, this set of identifiers cannot be changed through this interface.
Successful response¶
{
"code": 0,
"data": {
"id": "connection_01",
"workspace_id": "workspace_example",
"name": "新的 MCP 服务",
"status": "draft",
"kind": "mcp_server",
"endpoint_uri": "https://mcp.example.com",
"auth_type": "none",
"visibility": "private",
"version": 1,
"created_at": "2026-10-14T00:00:00Z",
"updated_at": "2026-10-14T00:00:00Z",
"config": {
"transport": "http-streaming"
}
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
response data. |
|
string |
Connection ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
Name. |
|
string |
Description. Can be omitted if not set. |
|
string |
Current status. Values: |
|
string |
Connection type. Values: |
|
string |
Service endpoint address. |
|
string |
Authentication method. Values: |
|
string |
A reference to a saved credential, not a clear-text key. Can be omitted if not set. |
|
array of string |
List of available capabilities. Can be omitted if not set. |
|
string |
The user ID to which it belongs. Can be omitted if not set. |
|
string |
Visible range. Value: |
|
object |
Non-sensitive configuration, fields vary with connection or channel type. Can be omitted if not set. |
|
string |
The most recent test status, either succeeded or failed. Can be omitted if not set. Value: |
|
string |
The most recent test time, in RFC 3339 format. Can be omitted if not set. |
|
string |
Error description for recent tests. Can be omitted if not set. |
|
integer |
Current version number. |
|
object |
Tag key-value pairs. Can be omitted if not set. |
|
object |
Extended annotations. Can be omitted if not set. |
|
object |
Extended metadata. Can be omitted if not set. |
|
string |
Creator ID. Can be omitted if not set. |
|
string |
Last updated by identifier. Can be omitted if not set. |
|
string |
Creation time, in RFC 3339 format. |
|
string |
Last updated in RFC 3339 format. |
Error response¶
{
"code": 5,
"message": "connection not found"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |