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

# Execute function (PATCH)

> Execute a function using PATCH method. Proxied to Deno runtime.



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/functions.yaml patch /functions/{slug}
openapi: 3.0.3
info:
  title: Insforge Functions API
  version: 1.0.0
  description: Serverless functions running in Deno runtime
servers: []
security: []
paths:
  /functions/{slug}:
    patch:
      tags:
        - Client
      summary: Execute function (PATCH)
      description: Execute a function using PATCH method. Proxied to Deno runtime.
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-zA-Z0-9_-]+$
          description: Function slug identifier
          example: hello-world
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Function executed successfully
          content:
            '*/*':
              schema:
                type: object
                additionalProperties: true
        '502':
          description: Failed to proxy to Deno runtime
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          oneOf:
            - type: string
            - type: array
              items:
                type: object
            - type: object
          description: Additional error details
        message:
          type: string
          description: Detailed error message
        pattern:
          type: string
          description: >-
            Pattern that caused validation failure (for dangerous code
            detection)

````