{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-organization-bank-account-update-request-dto-schema.json",
  "title": "OrganizationBankAccountUpdateRequestDto",
  "description": "Update a bank account",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-funding-accounts-api-openapi.yml#/components/schemas/OrganizationBankAccountUpdateRequestDto",
  "type": "object",
  "properties": {
    "nameOnAccount": {
      "type": "string",
      "description": "Full name on bank account"
    },
    "ownerType": {
      "allOf": [
        {
          "$ref": "#/$defs/BankAccountOwnerType"
        },
        {
          "description": "Bank account owner type"
        }
      ]
    },
    "bankName": {
      "maxLength": 100,
      "type": "string",
      "description": "Bank name. Set this field as a nickname for your bank account."
    },
    "accessToAdmins": {
      "type": "boolean",
      "description": "Set as `true` to enable access to all users with the `ADMINISTRATOR` user role"
    },
    "default": {
      "allOf": [
        {
          "$ref": "#/$defs/OrganizationBankAccountDefault"
        },
        {
          "description": "Bank account default values for BILL AP and AR operations"
        }
      ]
    },
    "chartOfAccountId": {
      "type": "string",
      "description": "BILL-generated ID of the chart of accounts for the organization bank account. The value begins with `0ca`."
    }
  },
  "$defs": {
    "BankAccountOwnerType": {
      "type": "string",
      "description": "BankAccountOwnerType Enum.",
      "enum": [
        "BUSINESS",
        "PERSONAL"
      ]
    },
    "OrganizationBankAccountDefault": {
      "type": "object",
      "properties": {
        "payables": {
          "type": "boolean",
          "description": "Set as `true` if the bank account is set as default for Accounts Payable operations"
        },
        "receivables": {
          "type": "boolean",
          "description": "Set as `true` if the bank account is set as default for Accounts Receivable operations"
        }
      },
      "description": "Bank account defaults."
    }
  }
}