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

# Actualizar gasto

> Operacion: Actualizar gasto.



## OpenAPI

````yaml /generated/specs/finance.json put /api/v1/expense/{id}
openapi: 3.0.0
info:
  title: Raul API - Finanzas
  description: >-
    Facturas, boletas, ejecuciones de billing, cuentas por pagar y medios de
    pago.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/expense/{id}:
    put:
      tags:
        - Cuentas por Pagar - Gastos
      summary: Actualizar gasto
      description: 'Operacion: Actualizar gasto.'
      operationId: ExpenseController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateExpenseDto'
      responses:
        '200':
          description: Gasto actualizado
        '404':
          description: Gasto no encontrado
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateExpenseDto:
      type: object
      properties:
        category_id:
          type: string
          description: ID de la categoría
        status_id:
          type: number
          description: Estado del gasto
          example: 1
          enum:
            - 1
            - 2
            - 3
        folio:
          type: string
          description: Número de folio del documento
        tipo_documento:
          type: string
          description: Tipo de documento
        monto_neto:
          type: number
          description: Monto neto
        monto_iva:
          type: number
          description: Monto IVA
        monto_total:
          type: number
          description: Monto total
        fecha_emision:
          type: string
          description: Fecha de emisión
        fecha_vencimiento:
          type: string
          description: Fecha de vencimiento
        notas:
          type: string
          description: Notas adicionales
        archivo_adjunto:
          type: string
          description: URL del archivo adjunto
        credit_installment_id:
          type: string
          description: ID de la cuota de crédito a vincular
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication

````