> ## Documentation Index
> Fetch the complete documentation index at: https://v1-learn.neoartd.my.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Branch



## OpenAPI

````yaml api/branch.json put /cabang-kantor/{id}
openapi: 3.0.1
info:
  title: Branch API
  description: An API for Branch documentation management and resource access.
  version: 1.0.0
servers:
  - url: https://blessed-toad-definitely.ngrok-free.app/api
security: []
paths:
  /cabang-kantor/{id}:
    put:
      summary: Update Branch
      operationId: updateBranch
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            description: Unique identifier for the branch
            example: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BranchInput'
      responses:
        '200':
          description: Branch updated successfully
components:
  schemas:
    BranchInput:
      type: object
      properties:
        namaCabang:
          type: string
          description: Name of the branch
          example: Cabang Jakarta
        alamatLengkap:
          type: string
          description: Full address of the branch
          example: Jl. Jend. Sudirman No. 1
        kota:
          type: string
          description: City where the branch is located
          example: Jakarta
      required:
        - namaCabang
        - alamatLengkap
        - kota

````