Skip to main content
PUT
/
tools
/
{tool_id}
Update Tool
curl --request PUT \
  --url https://api.kallabot.com/tools/{tool_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_availability_v2",
        "description": "Check appointment availability with updated parameters",
        "parameters": {
          "type": "object",
          "properties": {
            "date": {
              "type": "string",
              "format": "date"
            },
            "time": {
              "type": "string"
            },
            "duration": {
              "type": "integer"
            }
          },
          "required": [
            "date",
            "time"
          ]
        }
      }
    }
  ],
  "tools_params": {
    "check_availability_v2": {
      "method": "POST",
      "url": "https://api.example.com/v2/availability",
      "api_token": "updated_token"
    }
  },
  "category": "scheduling",
  "tags": [
    "availability",
    "booking",
    "v2"
  ]
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "category": "<string>",
    "tags": [
      "<string>"
    ],
    "isActive": true,
    "lastTested": "2023-11-07T05:31:56Z",
    "testStatus": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tool_id
string
required

Body

application/json
tools
API Tool (function) · object[]
required
tools_params
object
required
category
string
tags
string[]

Response

Tool updated

success
boolean
message
string
data
object