Skip to main content
PATCH
/
ai-tools
/
{tool_id}
Update AI Tool
curl --request PATCH \
  --url https://api.wacht.dev/ai-tools/{tool_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "type": "api",
  "config": {},
  "is_active": true
}'
{
  "id": "<string>",
  "name": "Web Scraper Tool",
  "description": "<string>",
  "type": "api",
  "config": {
    "endpoint": "<string>",
    "method": "GET",
    "headers": {},
    "parameters": [
      {
        "name": "<string>",
        "type": "<string>",
        "required": true
      }
    ]
  },
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

tool_id
string
required

Body

application/json
name
string
description
string
type
enum<string>
Available options:
api,
function,
webhook
config
object
is_active
boolean

Response

id
string
name
string
Example:
description
string
type
enum<string>
Available options:
api,
function,
webhook
Example:
config
object
is_active
boolean
Example:
created_at
string<date-time>
updated_at
string<date-time>