> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erp.arukz.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update bank

> Update an existing bank

Also accepts `PATCH` with the same body.



## OpenAPI

````yaml /api-reference/openapi.json put /admin/api/v1/support/banks/{id}
openapi: 3.0.3
info:
  title: ARUKZ ERP API
  version: v1
  description: >-
    The REST API of ARUKZ ERP: sales, purchases, inventory, products, partners,
    accounts, projects and reference data. Every call acts as the user whose
    token it carries and sees only that user's company.
servers:
  - url: https://erp.arukz.com
    description: ARUKZ ERP (hosted)
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Sign in for a token and sign out.
  - name: Sales
    description: Quotations, sales orders and their lines, deliveries and invoices.
  - name: Purchases
    description: Purchase orders, receipts, bills, agreements and vendor price lists.
  - name: Inventory
    description: >-
      Warehouses, locations, lots, stock quantities, receipts, deliveries,
      transfers and scrap.
  - name: Products
    description: 'The product catalogue: categories, attributes, variants and packaging.'
  - name: Partners
    description: Customers, vendors, contacts, addresses and bank accounts.
  - name: Accounts
    description: >-
      Invoices, bills, credit notes, refunds, taxes, journals and the chart of
      accounts.
  - name: Projects
    description: Projects, tasks, stages and milestones.
  - name: Reference data
    description: Currencies and rates, banks, countries, states and units of measure.
paths:
  /admin/api/v1/support/banks/{id}:
    put:
      tags:
        - Reference data
      summary: Update bank
      description: |-
        Update an existing bank

        Also accepts `PATCH` with the same body.
      operationId: reference-data-banks-update-bank
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            description: The bank ID
            example: 1
          description: The bank ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Bank name. Must not be greater than 255 characters.
                  example: Chase Bank
                code:
                  type: string
                  description: Bank code. Must not be greater than 50 characters.
                  nullable: true
                  example: CHASE
                email:
                  type: string
                  description: >-
                    Bank email address. Must be a valid email address. Must not
                    be greater than 255 characters.
                  nullable: true
                  example: info@example.com
                phone:
                  type: string
                  description: Bank phone number. Must not be greater than 50 characters.
                  nullable: true
                  example: '+1234567890'
                street1:
                  type: string
                  description: >-
                    Street address line 1. Must not be greater than 255
                    characters.
                  nullable: true
                  example: 123 Main St
                street2:
                  type: string
                  description: >-
                    Street address line 2. Must not be greater than 255
                    characters.
                  nullable: true
                  example: Suite 100
                city:
                  type: string
                  description: City. Must not be greater than 100 characters.
                  nullable: true
                  example: New York
                zip:
                  type: string
                  description: ZIP/Postal code. Must not be greater than 20 characters.
                  nullable: true
                  example: '10001'
                state_id:
                  type: string
                  description: >-
                    State ID. The `id` of an existing record in the states
                    table.
                  nullable: true
                  example: 9
                country_id:
                  type: string
                  description: >-
                    Country ID. The `id` of an existing record in the countries
                    table.
                  nullable: true
                  example: 233
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  id: 1
                  name: Bank of California
                  code: BOC0001
                  email: bankocalifornia@example.com
                  phone: '2122211211121'
                  street1: Wallmart Steet Complex
                  street2: First Floor
                  city: California
                  zip: '90006'
                  creator_id: 1
                  created_at: '2025-04-10T10:47:58.000000Z'
                  updated_at: '2025-04-10T10:47:58.000000Z'
                  deleted_at: null
                  state:
                    id: 13
                    name: California
                    code: CA
                    country_id: 233
                    created_at: '2025-04-07T12:34:34.000000Z'
                    updated_at: '2025-04-07T12:34:34.000000Z'
                  country:
                    id: 233
                    name: United States
                    code: US
                    phone_code: '1'
                    state_required: true
                    zip_required: true
                    currency_id: 1
                    created_at: '2025-04-07T12:34:34.000000Z'
                    updated_at: '2025-04-07T12:34:34.000000Z'
                message: Bank updated successfully.
        '401':
          description: Unauthenticated
          content:
            application/json:
              example:
                message: Unauthenticated.
        '404':
          description: Bank not found
          content:
            application/json:
              example:
                message: Resource not found.
        '422':
          description: Validation error
          content:
            application/json:
              example:
                message: The given data was invalid.
                errors:
                  name:
                    - The name field is required.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API token from [Sign in](/api-reference/authentication), sent as
        `Authorization: Bearer <token>`. Tokens last 30 days.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.