Update an existing tool configuration. Only provided fields will be updated.
Your API key for authentication.
Must be application/json.
Path Parameters
The unique identifier of the tool.
Permissions
tools:update (admin, agent_manager)
Request Body
All fields are optional. Only provided fields will be updated.
New name for the tool (pattern: ^[a-zA-Z0-9_]+$, 1-50 characters).
New description (1-500 characters).
New webhook URL (1-500 characters).
New HTTP method: GET, POST, PUT, PATCH, or DELETE.
New headers (replaces existing).
New parameters (replaces existing).
New timeout in seconds (1-60).
Response
Indicates if the update was successful.
Human-readable success message.
{
"webhook_url": "https://api.shop.com/v2/orders/status",
"timeout_seconds": 45
}
{
"success": true,
"message": "Tool updated successfully",
"data": {
"tool_id": "tool_a1b2c3d4e5f6",
"tool_name": "GetOrderStatus",
"webhook_url": "https://api.shop.com/v2/orders/status",
"timeout_seconds": 45,
"updated_at": "2024-01-20T15:00:00Z"
}
}
Errors
Tool belongs to different organization.