Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name (must exist) |
Request Body
Full JSON Body Example (Email Connection)
Request Body Fields
The request body structure is identical to Create Connection. See that documentation for complete field descriptions. Important: TheconnectionName path parameter identifies the existing connection to update. To rename a connection, provide the new name in the name field of the request body while keeping the old name in the path parameter. If name is omitted from the body, the existing name (from the path parameter) is preserved.
Common Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| type | string | Yes | - | Connection type discriminator field. Must match the existing connection type. Used to identify the connection type in API requests/responses. |
| name | string | No | (path parameter value) | New connection name. If omitted or empty, the existing name from the path parameter is used. If provided with a different value, the connection is renamed (must not conflict with existing connections) |
| description | string | No | - | Connection description |
| deployToWorker | boolean | No | true | Whether to deploy to worker |
| enabled | boolean | No | true | Whether connection is enabled |
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
| deploymentResult | object | Deployment result (if deployToWorker=true) |
| deploymentResult.success | boolean | Deployment success |
Error Response (400 Bad Request)
Common Causes
- Connection name does not exist
- Connection name in path does not match name in body (unless renaming)
- New connection name conflicts with existing connection
- Invalid connection type (cannot change connection type)
- Missing required fields for connection type
- Invalid field values
Error Response (401 Unauthorized)
Error Response (404 Not Found)
cURL Example
Example 1: Update Connection Configuration
Example 2: Rename Connection
Rename a connection by providing a new name in the body (path parameter keeps old name).Example 3: Update and Disable
Update connection configuration and disable it.Permissions
- User must have
CONNECTIONS+MANAGEpermission in the project
Notes and Warnings
- Name Change: To rename a connection, provide the new name in the
namefield of the request body. The path parameter always identifies the existing connection. If the new name conflicts with another connection, the update will fail - Type Cannot Change: Connection type (
type) cannot be changed. Use Delete and Create to change type. - Name Conflicts: If renaming, ensure the new name doesn’t conflict with existing connections
- Secret Fields: Secret fields can be updated. Ensure you have the correct values.
- Deployment: If
deployToWorker: true, connection is automatically redeployed to workers - References: References to certificates or keystores can be updated by providing new names
Related Documentation
- Get Connection - Get connection details
- Create Connection - Create a new connection
- Delete Connection - Delete a connection
- Email Connection - Email connection details

