PUT
/
tools
/
{tool_id}
curl --request PUT \
  --url https://agent-prod.studio.lyzr.ai/v3/tools/{tool_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{}'
{
  "message": "Tool updated successfully."
}

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

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 "{}"

Authorizations

x-api-key
string
header
required

Path Parameters

tool_id
string
required

The ID of the tool to update.

Body

application/json · object

JSON object containing the fields to be updated.

The body is of type object.

Response

200
application/json

Tool updated successfully

The response is of type object.