Rotate credentials or update metadata (such as the provider workspace reference) for an existing connection.
The Ampersand project ID or project name.
The ID of the connection to update. You can find this via the list connections endpoint.
Specify which fields to update in updateMask and provide corresponding values in connection. Fields in connection not listed in updateMask are ignored.
Fields to update. Each entry must have a corresponding value in connection. Credential fields (apiKey, basicAuth, oauth2ClientCredentials, oauth2PasswordCredentials) must match the connection's existing auth scheme.
providerWorkspaceRef, providerMetadata, apiKey, basicAuth, oauth2ClientCredentials, oauth2PasswordCredentials ["apiKey"]Connection updated successfully.
The connection ID.
"connection-123"
The Ampersand project ID.
"project-456"
The SaaS provider that this Connection is for.
"salesforce"
The time the connection was created.
"2023-07-13T21:34:44.816Z"
The authentication scheme used for this connection.
none, apiKey, basic, oauth2/authorizationCode, oauth2/authorizationCodePKCE, oauth2/clientCredentials, oauth2/password "oauth2/authorizationCode"
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.created, working, bad_credentials "working"
If available, the identifier for the provider workspace (e.g. the Salesforce subdomain)
"provider-workspace-123"
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)
"provider-consumer-123"
The time the connection was last updated.
"2023-07-13T21:34:44.816Z"
The API key used while making the connection.
"api-key-123"