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

# Actualiza una dirección existente



## OpenAPI

````yaml patch /addresses/{id}
openapi: 3.0.3
info:
  title: Esolbay API
  version: 1.0.0
  description: API Esolbay.
servers:
  - url: http://localhost:3000/api/v1
    description: Ruta base local
  - url: https://api.esolbay.com/api/v1
    description: Producción
  - url: https://staging.esolbay.com/api/v1
    description: Staging
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /addresses/{id}:
    patch:
      tags:
        - Addresses
      summary: Actualiza una dirección existente
      operationId: updateAddress
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddressUpdate'
      responses:
        '200':
          description: Dirección actualizada
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  addressType:
                    type: string
                  city:
                    type: string
                  country:
                    type: string
                  createdAt:
                    type: string
                  formattedAddress:
                    type: string
                  latitude:
                    type: number
                  longitude:
                    type: number
                  name:
                    type: string
                  placeId:
                    type: string
                  postalCode:
                    type: string
                  state:
                    type: string
                  street:
                    type: string
                  streetNumber:
                    type: string
                  updatedAt:
                    type: string
                required:
                  - id
                example:
                  id: addr_01
                  city: Lima
                  country: PE
                  formattedAddress: Av. Siempre Viva 123, Lima, Peru
        '401':
          description: Unauthorized
        '404':
          description: No encontrada
        '500':
          description: Error interno del servidor
components:
  schemas:
    AddressUpdate:
      type: object
      properties:
        addressType:
          type: string
        city:
          type: string
        country:
          type: string
        formattedAddress:
          type: string
        latitude:
          type: number
        longitude:
          type: number
        name:
          type: string
        placeId:
          type: string
        postalCode:
          type: string
        state:
          type: string
        street:
          type: string
        streetNumber:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````