Skip to main content
PATCH
Update a connection.

Authorizations

X-Api-Key
string
header
required

Path Parameters

projectIdOrName
string
required

Project ID or Name.

connectionId
string
required

Connection ID.

Body

application/json
updateMask
string[]
required

Array of field paths specifying which fields to update. Allowed values include:

  • providerWorkspaceRef
  • providerMetadata
  • apiKey
  • basicAuth
  • oauth2ClientCredentials
  • oauth2PasswordCredentials
Example:
connection
Connection Request Body · object
required

Response

Connection updated successfully.

id
string
required

The connection ID.

Example:

"connection-123"

projectId
string
required

The Ampersand project ID.

Example:

"project-456"

provider
string
required

The SaaS provider that this Connection is for.

Example:

"salesforce"

group
Group · object
required
consumer
Consumer · object
required
createTime
string<date-time>
required

The time the connection was created.

Example:

"2023-07-13T21:34:44.816354Z"

authScheme
enum<string>
required

The authentication scheme used for this connection.

Available options:
none,
apiKey,
basic,
oauth2/authorizationCode,
oauth2/authorizationCodePKCE,
oauth2/clientCredentials,
oauth2/password
Example:

"oauth2/authorizationCode"

status
enum<string>
required

The status of the connection.

  • created: The connection has just been created or the access token was just refreshed.
  • working: The connection has successfully been used to make a request.
  • bad_credentials: The connection encountered credential-related issues when making a request, or when attempting to refresh the access token.
Available options:
created,
working,
bad_credentials
Example:

"working"

providerApp
Provider App · object
providerWorkspaceRef
string

If available, the identifier for the provider workspace (e.g. the Salesforce subdomain)

Example:

"provider-workspace-123"

providerConsumerRef
string

If available, the ID that Salesforce/Hubspot uses to identify this user (e.g. Salesforce has IDs in the form of https://login.salesforce.com/id/00D4x0000019CQTEA2/0054x000000orJ4AA)

Example:

"provider-consumer-123"

updateTime
string<date-time>

The time the connection was last updated.

Example:

"2023-07-13T21:34:44.816354Z"

oauth2AuthorizationCode
OAuth2 AuthorizationCode Token · object
apiKey
string

The API key used while making the connection.

Example:

"api-key-123"

providerMetadata
Provider Metadata · object