UpdateConnection
Updates the connection configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:UpdateConnection |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v1/connections/{ConnectionId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ConnectionId |
string |
Yes |
The connection ID. For more information about how to obtain the connection ID, see ListConnections. |
conn-pai9m***mi47 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request struct. |
|
| Configs |
object |
No |
The configuration information of the connection. The configurations are in key-value pairs. The keys in the Config parameter vary based on the connection type. For more information, see the supplementary description of the request parameters for the CreateConnection operation. |
|
|
string |
No |
The value of the connection configuration. |
6379 |
|
| Description |
string |
No |
The description of the connection. |
Connection used for annotation |
| Secrets |
object |
No |
The key-value configurations that need to be encrypted, such as the database logon password and the key for the model connection. |
|
|
string |
No |
The value of the encrypted connection configuration. |
Dakbjas**aljksdn |
|
| Models |
array<object> |
No |
The list of model information. |
|
|
object |
No |
The model information. |
||
| Model |
string |
No |
The model identifier. |
model_001 |
| DisplayName |
string |
No |
The display name of the model. |
car_tag |
| ModelType |
string |
No |
The model type. Valid values:
|
LLM |
| ToolCall |
boolean |
No |
Specifies whether tool calling is supported. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response information. |
||
| RequestId |
string |
The unique ID of the request. |
A0F049F0-8D69-5BAC-8F10-B******A34C |
Examples
Success response
JSON format
{
"RequestId": "A0F049F0-8D69-5BAC-8F10-B******A34C"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.