VocalDocscontracts 1.65.0

Update a Connection

PATCH /v1/connections/{connection_id}

PropertyValue
Operationupdate_connection
GroupConnections
Scopeintegrations:write
Route classcontrol
IdempotencyNo Idempotency-Key
AuditAudited integrations.connection.update (mutation)
Released in1.60.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Replaces the named fields at the revision If-Match names and checks the Connection again as a create does (1.60.0). The tools of an MCP server's Connection are its registration's (connection_managed_by_mcp_server); a revoked Connection is connection_revoked. resume clears suspended.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the integrations:write scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl -X PATCH "$VOCAL_API/v1/connections/con_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY" \
  -H 'If-Match: "1"' \
  -H "Content-Type: application/json" \
  -d '{}'

Parameters

NameInTypeRequiredDescription
connection_idpathConnectionIdyesThe id of a Connection: con_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
if-matchheaderstringyesThe revision the change was made against, quoted as the ETag returns it, or * to overwrite.

Request body

Content type application/json, required: ConnectionUpdateRequest.

FieldTypeRequiredDescription
allowed_environmentsarray of Environmentno
base_urlConnectionBaseUrlno
enabled_toolsarray of ConnectorToolNamenoReplaces the enabled tools. A tool that needs a scope the vendor has not granted needs incremental consent through the authorization route; until then a publish that binds it is refused with scope_missing.
nameConnectionNameno
resumetruenoClears suspended, returning the Connection to active (integrations.md section 3).
sandboxbooleanno
senderConnectionSenderInputno

Responses

StatusContent typeShapeError codes
200application/jsonConnection
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden, org_suspended
404application/jsonErrorEnvelopenot_found
409application/jsonErrorEnvelopeconnection_revoked
412application/jsonErrorEnveloperevision_mismatch
422application/jsonErrorEnvelopevalidation_failed
428application/jsonErrorEnvelopeprecondition_required
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is Connection.

FieldTypeRequiredDescription
allowed_environmentsarray of EnvironmentyesThe environments whose runs may use it; live only by default. A test run against a Connection that does not allow test executes the Connector's mock (integrations.md section 3).
auth_strategyConnectionAuthStrategyyes
authorized_atTimestamp or nullyes
base_urlConnectionBaseUrl or nullyes
connector_idConnectorId or nullyesThe Connector; null for an MCP server.
connector_majorinteger or nullyesThe major version of the Connector's manifest the Connection pins; null for an MCP server.
created_atTimestampyes
enabled_toolsarray of ConnectorToolNameyesThe Connector's tools the Organization allows, which set the scopes requested (integrations.md section 10); empty for an MCP server, whose registration's allowed_tools govern.
external_accountstring or nullyesThe external account authorized (a tenant id, an instance URL); null before.
granted_scopesarray of VendorScopeyesThe scopes the vendor granted at the last authorization; empty before.
idConnectionIdyes
mcp_server_idMcpServerId or nullyesThe MCP server registration whose credential the Connection holds; null for a Connector.
nameConnectionNameyes
object"connection"yes
organization_idOrganizationIdyes
originConnectionOriginyes
phi_attestationConnectionPhiAttestation or nullyesThe PHI attestation, or null; only an attested Connection may receive PHI.
requested_scopesarray of VendorScopeyesThe union of the scopes of enabled_tools; nothing more is requested.
revisionintegeryesCounts writes to the Connection; returned as the ETag and required in If-Match.
revoked_atTimestamp or nullyes
sandboxbooleanyesTrue for a vendor sandbox, which may allow test; a test Call never books a real appointment.
secret_hintstring or nullyesThe last characters of the stored key or token, or null; never the secret.
secret_versionintegeryesCounts the secrets stored; 0 before the first. A refresh write-back compares and sets it.
senderConnectionSender or nullyesThe sender of a messaging Connection; null otherwise.
statusConnectionStatusyes
status_reasonConnectionStatusReason or nullyesNull while active.
updated_atTimestampyes