Update Connection
Rename a connection, make it your organization's default for its app, or share it with the organization (or make it yours alone). Send only what changes. Sharing changes need role:manage. Names can't contain a secret. To replace the secrets, use Update Connection Credentials.
Path
The connection's id, from List Connections.
Headers
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
The new name.
The connection's name, as the app lists it. It cannot contain a secret of the connection.
true: the organization's default connection for its app.
true makes it the organization's default connection for its app. To change the default, make another connection the default.
true: shared with the organization. false: the API key creator's own. Needs role:manage.
true shares it with the organization; false makes it the API key creator's personal connection. Needs role:manage.
Response fields
idstringUnique id of the connection.
namestringThe connection's name, as the app lists it. Null when it was never named.
nameSourcestringHow the name was set. Null for connections named before this was recorded.
generatedMindCloud named it when it was created, usually after the account it signed in as.manualSomeone typed the name.
appIdstringThe app this connection signs into.
authTypestringHow it signs in to the app, as the app's sign-in method declares it: oAuth2, oAuth1, apiKey, basic, custom, ftp or none.
authenticationIdstringThe app's sign-in method it uses, for an app that offers more than one.
accountEmailstringThe email of the account it signed in as. Null when the app's sign-in does not report one (Slack's does not).
externalAccountIdstringThe signed-in account's id at the provider (a Slack workspace's team id), when the app reports one.
scopesarray of stringThe permissions the provider granted at sign-in. Null for a connection that is not OAuth or last signed in before MindCloud recorded them; signing it in again records them.
environmentIdstringThe environment it is for, when a company keeps a connection per environment.
statusstringThe connection's status as of statusUpdatedOn: the result of its last sign-in, test or use.
statusUpdatedOndateWhen the status last changed.
isDefaultbooleanTrue when it is the company's default connection for its app: a Universal API run that sends no connectionId uses it, and the editor picks it for a new step.
isCompanybooleanTrue when the whole company shares this connection.
ownerstringWhose connection it is. Filter with owner[in]=company,personal to leave out Embedded end users' and installations' connections.
companyShared with the company: usable by every member, or by who its share list names (Everyone, roles, teams).personalOne person's: usable only by them (userId), or by who created it.endUserAn Embedded end user's: used only on their behalf, never in a workflow step.installationAn Embedded installation's: used only for that installation's runs.
usableByYoubooleanWhether this API key's creator may run Universal actions through it, and test or delete it: a shared connection with no share list, or whose share list gives them access (Everyone, their role or one of their teams; or they manage roles), or one of their own, the rule the Universal run applies. False for a shared connection whose share list gives them no access, and for Embedded end users' and installations' connections, which are used only on that end user's or installation's behalf. Another member's personal connection is not listed at all.
isGlobalbooleanTrue for a personal connection its owner can also use in every other company they belong to.
endUserIdstringThe embedded end user who owns it, if any.
installationIdstringThe embedded installation it belongs to, if any.
userIdstringThe user who owns it, if it is personal.
createdInstringWhere it was created: gravity (the MindCloud platform) or cirra. Null for connections created before this was recorded.
testedOndateThe last successful test.
expiresOndateWhen the current sign-in expires (an OAuth access token's lifetime), if it does. MindCloud signs in again before the next use when the app allows it, so a past date on a valid connection usually means it has not been used since; status says whether that worked last time. Filter on this to catch sign-ins that cannot renew themselves.
authenticatedOndateThe last time someone authenticated it.
attemptedOndateThe last time someone started signing it in, whether or not they finished.
createdOndateWhen the connection was created.
createdBystringWho created it: a member's userId (List Members), or an embedded end user's id. With createdOn and authenticatedOn, this tells apart connections that share a name, such as several to the same Slack workspace.
updatedOndateWhen it was last changed.
updatedBystringWho last changed it.