PUT
/
sandbox
/
connections
/
accounts
import Finch from '@tryfinch/finch-api';

const finch = new Finch();

async function main() {
  const accountUpdateResponse = await finch.sandbox.connections.accounts.update();

  console.log(accountUpdateResponse.account_id);
}

main();
{
  "account_id": "string",
  "authentication_type": "credential",
  "company_id": "b2e6a1c3-1a5e-44ae-a8fd-81f76fd715cf",
  "provider_id": "string",
  "products": [
    "directory"
  ]
}

Authorizations

Authorization
string
headerrequired

Please use your Access Token

Body

application/json
connection_status
enum<string>
Available options:
pending,
processing,
connected,
error_no_account_setup,
error_permissions,
reauth

Response

200 - application/json
account_id
string
required
authentication_type
enum<string>
required
Available options:
credential,
api_token,
oauth,
assisted
company_id
string
required
provider_id
string
required
products
string[]
required