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

# Renombra, cambia email o archiva un contacto (IOU-005/006)



## OpenAPI

````yaml /openapi/v1.json patch /v1/contacts/{id}
openapi: 3.0.0
info:
  title: Finzaria API
  description: >-
    API REST de Finzaria — finanzas personales para México, dev-first y
    agent-first. Autentícate con tu API key bxm_ (o un token OAuth).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.finzaria.com/v1
    description: Producción
security: []
tags: []
paths:
  /v1/contacts/{id}:
    patch:
      tags:
        - iou
      summary: Renombra, cambia email o archiva un contacto (IOU-005/006)
      operationId: ContactsController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateContactDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactDto'
      security:
        - bearer: []
components:
  schemas:
    UpdateContactDto:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
          nullable: true
        archived:
          type: boolean
          description: true archiva; false des-archiva (IOU-006).
    ContactDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        email:
          type: string
          nullable: true
        archivedAt:
          type: string
          nullable: true
        createdAt:
          type: string
      required:
        - id
        - name
        - email
        - archivedAt
        - createdAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT (Supabase Auth)
      type: http

````