> ## 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 Pelanggan



## OpenAPI

````yaml api/pelanggan.json put /pelanggan/{id}
openapi: 3.0.1
info:
  title: Pelanggan API
  description: An API for Pelanggan documentation management and resource access.
  version: 1.0.0
servers:
  - url: https://blessed-toad-definitely.ngrok-free.app/api
security: []
paths:
  /pelanggan/{id}:
    put:
      summary: Update Pelanggan
      operationId: updatePelanggan
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            description: Unique identifier for the pelanggan
            example: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PelangganInput'
      responses:
        '200':
          description: Pelanggan updated successfully
components:
  schemas:
    PelangganInput:
      type: object
      properties:
        nama:
          type: string
          description: Name of the pelanggan
          example: John Doe
        alamatLengkap:
          type: string
          description: Address of the pelanggan
          example: Jakarta, Indonesia
        agama:
          type: string
          enum:
            - Islam
            - Kristen
            - Katolik
            - Hindu
            - Buddha
            - Konghucu
          description: Religion of the pelanggan
        tanggalLahir:
          type: string
          format: date
          description: Birthdate of the pelanggan
          example: '2000-01-01'
        nomorTelepon:
          type: string
          description: Phone number of the pelanggan
          example: '+6281234567890'
      required:
        - nama
        - alamatLengkap
        - agama
        - tanggalLahir
        - nomorTelepon

````