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

# Update Tool Endpoint

> This endpoint allows updating an existing tool's configuration.

Update Tool Endpoint

### Description

This endpoint allows updating an existing tool's configuration.

### Endpoint

**PUT** `/v3/tools/{tool_id}`

### Authentication

API Key (x-api-key) must be included in the header.

### Path Parameters

* `tool_id` (string) - The ID of the tool to update.

### Request Body

A JSON object containing the fields to be updated.

### Response

A message confirming that the tool was updated.

### Example Request

```sh theme={null}
curl -X PUT "https://agent-prod.studio.lyzr.ai/v3/tools/tool_id" ^
-H "accept: application/json" ^
-H "content-type: application/json" ^
-H "x-api-key: sk-default-EXAMPLEKEY123" ^
-d "{}"
```


## OpenAPI

````yaml put /tools/{tool_id}
openapi: 3.0.3
info:
  title: Lyzr Tool API
  version: 1.0.0
servers:
  - url: https://agent-prod.studio.lyzr.ai/v3
security: []
paths:
  /tools/{tool_id}:
    put:
      tags:
        - Tools
      summary: Update Tool
      description: This endpoint allows updating an existing tool's configuration.
      operationId: updateTool
      parameters:
        - name: tool_id
          in: path
          required: true
          description: The ID of the tool to update.
          schema:
            type: string
      requestBody:
        description: JSON object containing the fields to be updated.
        required: true
        content:
          application/json:
            schema:
              type: object
              example: {}
      responses:
        '200':
          description: Tool updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Tool updated successfully.
        '401':
          description: Unauthorized - Invalid API key
        '404':
          description: Tool not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````