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

# Update Tool

When `config` is supplied, send the complete webhook configuration. It is normalized and validated using the same rules as [Create Tool](/api-reference/tools/create), including public-target checks, the 1–60 second timeout range, safe request headers, camelCase parameter names, and one-attempt action dispatch.

Tool schemas are snapshotted when a call starts. An updated extraction schema applies to new calls; it does not mutate a call already in progress.


## OpenAPI

````yaml PATCH /tools/{id}
openapi: 3.1.0
info:
  title: Yappr API
  description: >
    Create and manage AI voice agents, purchase phone numbers, configure tools,
    and initiate calls — all via REST.
  version: 1.0.0
  contact:
    url: https://goyappr.com
servers:
  - url: https://api.goyappr.com
    description: Production
security:
  - apiKey: []
paths:
  /tools/{id}:
    parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
    patch:
      tags:
        - Tools
      summary: Update tool
      operationId: updateTool
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                config:
                  type: object
                is_active:
                  type: boolean
      responses:
        '200':
          description: Updated tool
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tool'
components:
  schemas:
    Tool:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          description: Normalized to camelCase (e.g. 'capture_lead' → 'captureLead')
        description:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - webhook
            - function
        config:
          type: object
        is_active:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard
        under **Settings → API Keys**.

````