Skip to main content
PATCH
Update API Tool

Authorizations

apikey
string
header
required

API Key (i.e. Rest API Key from the Dashboard).

Path Parameters

slug
string
required

Body

application/json
slug
string

Slug for the API tool (unique)

Example:

"create_lead"

description
string

Description of the API tool

Example:

"When to use, preconditions, what it returns"

endpoint
string

API endpoint URL

Example:

"https://api.example.com/leads"

method
enum<string>

HTTP method

Available options:
GET,
POST,
PUT,
PATCH,
DELETE
Example:

"POST"

enableBasicAuth
boolean

Whether to enable basic authentication

Example:

true

basicAuthUsername
string

Basic auth username (required if enableBasicAuth is true)

Example:

"username"

basicAuthPassword
string

Basic auth password (required if enableBasicAuth is true)

Example:

"password"

headers
string

HTTP headers as a JSON string (e.g., '{"Content-Type": "application/json", "Authorization": "Bearer token"}')

Example:

"{\"Content-Type\": \"application/json\", \"Authorization\": \"Bearer token\"}"

bodyTemplate
string

Body template for the API request

Example:

"{\"name\": \"{{name}}\", \"email\": \"{{email}}\"}"

allowAdditionalProperties
boolean
default:false

Whether to allow additional properties

Example:

false

parameters
object[]

Array of parameters for the API tool

icon
string

Icon for the API Tool

Example:

"http://localhost:3001"

Response

200 - application/json

API tool updated successfully

_id
string
Example:

"myapp_my-api-tool"

appId
string
Example:

"my-app-id"

slug
string
Example:

"my-api-tool"

name
string
Example:

"My API Tool"

description
string
Example:

"Calls an external API"

icon
string
Example:

"https://example.com/icon.png"

endpoint
string
Example:

"https://api.example.com/search"

method
string
Example:

"GET"

enableBasicAuth
boolean
Example:

false

headers
string | null
Example:

"{\"Content-Type\":\"application/json\"}"

bodyTemplate
string | null
Example:

"{\"query\":\"{{query}}\"}"

allowAdditionalProperties
boolean
Example:

false

parameters
object[]
tool
object
createdAt
number
Example:

1700000000000

updatedAt
number
Example:

1700000000000