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

# Update Circom file

> Update a specific Circom file



## OpenAPI

````yaml openapi.json patch /api/circom-files/{id}
openapi: 3.0.3
info:
  title: Warp API
  description: >-
    Comprehensive API for Warp platform including organizations, projects, ZK
    proofs, payments, and more
  version: 1.0.0
  contact:
    name: Warp Support
    email: support@usewarp.net
servers:
  - url: https://platform.usewarp.net
    description: Platform API
  - url: https://checkout.usewarp.net
    description: Checkout API
security:
  - bearerAuth: []
paths:
  /api/circom-files/{id}:
    patch:
      tags:
        - Circom
      summary: Update Circom file
      description: Update a specific Circom file
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: File ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: Updated file content
                name:
                  type: string
                  description: Updated file name
      responses:
        '200':
          description: Circom file updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  file:
                    $ref: '#/components/schemas/CircomFile'
        '400':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: File not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    CircomFile:
      type: object
      properties:
        id:
          type: string
          description: File ID
        project_id:
          type: string
          description: Project ID
        name:
          type: string
          description: File name
        content:
          type: string
          description: File content
        file_type:
          type: string
          enum:
            - circuit
            - input
            - other
          description: File type
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        updated_at:
          type: string
          format: date-time
          description: Update timestamp
      required:
        - id
        - project_id
        - name
        - content
        - file_type
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          type: array
          items:
            type: object
          description: Detailed validation errors
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: JWT Bearer token authentication

````