Skip to main content
PUT
/
api
/
tools
/
{id}
curl --request PUT \
  --url https://api.yourapp.com/api/tools/tool_123 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "toolId": "tool_123",
    "tool": {
      "name": "Advanced Data Validator",
      "description": "Validates and sanitizes input data",
      "dependencies": ["lodash", "validator", "sanitize-html"]
    }
  }'
{
  "success": true,
  "message": "Tool updated successfully"
}

Path Parameters

id
string
required
Tool ID

Request Body

toolId
string
required
Tool ID (must match path parameter)
tool
object
required
Tool fields to update

Response

success
boolean
Indicates if the operation was successful
message
string
Response message
curl --request PUT \
  --url https://api.yourapp.com/api/tools/tool_123 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "toolId": "tool_123",
    "tool": {
      "name": "Advanced Data Validator",
      "description": "Validates and sanitizes input data",
      "dependencies": ["lodash", "validator", "sanitize-html"]
    }
  }'
{
  "success": true,
  "message": "Tool updated successfully"
}