UpdateConnector
Updates a connector.
Usage notes
- A RAM user (sub-account) must first obtain the API permission for Alibaba Cloud Model Studio (requires
AliyunBailianDataFullAccess, which includes the sfm:UpdateConnector permission point) and join a business space before calling this operation. An Alibaba Cloud account (primary account) can call this operation directly without authorization. We recommend that you call this operation by using the latest Alibaba Cloud Model Studio SDK. - This operation is not idempotent.
Throttling: This operation is throttled if called too frequently. Do not exceed 5 calls per second. If a request is throttled, try again later.
Try it out
You can run this operation directly in OpenAPI Explorer without calculating a signature. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
No authorization information is currently exposed for this API.
Request syntax
PUT /{WorkspaceId}/datacenter/connector/{ConnectorId} HTTP/1.1
Path parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | The ID of the workspace. | llm-3z7uw7fwz0vexxxx |
| ConnectorId | string | Yes | The instance ID of the connector. You can find this ID in the Model Studio console. | conn_xxxx |
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ConnectorName | string | Yes | The name of the connector. | test-connector |
| Description | string | Yes | The description of the connector. | never_delete_aeip_95_us-west-1 |
Response parameters
Parameter | Type | Description | Example |
|---|---|---|---|
object | Schema of Response | ||
| Code | string | The error code. | Index.Forbidden |
| Data | object | The business data fields returned by the operation. | |
| ConnectorId | string | The ID of the connector. | conn_file_e0c9db4030b2465a9478028f7d76cd92_1234 |
| Message | string | The error message. | Required parameter(%s) missing or invalid, please check the request parameters. |
| RequestId | string | The ID of the request. | 778C0B3B-03C1-5FC1-A947-36EDD13606AB |
| Status | string | The status code returned by the operation. | 200 |
| Success | boolean | Indicates whether the request was successful. | true |
Examples
Success response
JSON format
{
"Code": "Index.Forbidden",
"Data": {
"ConnectorId": "conn_file_e0c9db4030b2465a9478028f7d76cd92_1234"
},
"Message": "Required parameter(%s) missing or invalid, please check the request parameters.",
"RequestId": "778C0B3B-03C1-5FC1-A947-36EDD13606AB",
"Status": "200",
"Success": true
}
Error codes
See Error Codes for a complete list.
Change history
For more information, see Change Details.