Skip to main content
PATCH
update-connection

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Connection id or connection key.

Body

application/json
type
enum<string>
Available options:
connector,
mcp,
pipedream
name
string
meta
object
authOptionKey
string
key
string | null
Required string length: 1 - 100
integrationId
string
integrationUuid
string
integrationKey
string
connectorId
string
connectorUuid
string
connectorKey
string
connectorVersion
string
externalAppId
string
externalAppUuid
string
credentials
any
connectorParameters
any
input
any
intent
string

[Experimental] Intent-based instruction for an agent to configure this element.

connector
object

Connector to build or edit inline. Creates and links a new connector when the connection has no connectorId; updates the linked connector when it does. Same shape as the connector write API.

externalApp
object

External app to create or edit inline. Creates and links a new app when the connection has no externalAppId; updates the linked app when it does. Same shape as the external-app write API.

Response

200 - application/json

Write values to an existing connection: set input / connectorParameters (per the connector’s auth schema) or credentials (an API key/token, encrypted server-side, never echoed back). Use this to fill in auth the user volunteered — it pre-fills the connect form and can take the connection to READY. Each object replaces the prior one; merge client-side to retain keys.

id
string
required

Internal database ID of the element. Assigned by the API; unique per element.

name
string
required
userId
string
required
tenantId
string
ownerName
string | null
type
enum<string>
Available options:
connector,
mcp,
pipedream
key
string
isTest
boolean
connected
boolean
hasDocs
boolean
docsCount
number
docsSummary
string
state
enum<string>
Available options:
BUILDING,
CLIENT_ACTION_REQUIRED,
CONFIGURATION_ERROR,
SETUP_FAILED,
READY,
DISCONNECTING
errors
object[]
requestError
object
integrationId
string
connectorId
string
externalAppId
string
connectorVersion
string
authOptionKey
string
createdAt
string
updatedAt
string
lastActiveAt
string
nextCredentialsRefreshAt
string
nextRetryTimestamp
string
retryAttempts
number
canTest
boolean
canRefreshCredentials
boolean
archivedAt
string
isDeactivated
boolean
meta
object
buildingAgentSessionId
string

Session ID for building the element via intent-based endpoints (create/update with intent). Present when state is BUILDING.

clientAction
object

Action the client must perform to advance this connection. Present if and only if state is CLIENT_ACTION_REQUIRED.

logoUri
string

Resolved app logo for this element (integration -> connector -> external app -> favicon).

input
any