Skip to main content
PATCH
Update a tool by name

Authorizations

Authorization
string
header
required

An API key from your Devic console, sent as Authorization: Bearer <key>. An embedded front end sends a tenant-session token instead, so no API key reaches the browser, and an OAuth integration sends its access token. Missing, invalid or expired credentials get a 401. See Authentication.

Path Parameters

toolServerId
string
required

The unique identifier of the tool server

toolName
string
required

The function name of the tool to update

Body

application/json
function
object
endpoint
string

API endpoint for the tool

method
enum<string>

HTTP method

Available options:
GET,
POST,
PUT,
DELETE,
PATCH
queryParametersKeys
string[]

Query parameter keys

pathParametersKeys
string[]

Path parameter keys

bodyPropertyKey
string

Body property key

customHeaders
object[]

Custom headers

isFormDataBody
boolean

Whether the body is form data

bodyMode
enum<string>

Body mode

Available options:
simple,
advanced
bodyJsonTemplate
string

JSON body template

responsePostProcessingEnabled
boolean

Whether response post-processing is enabled

responsePostProcessingTemplate
string

Response post-processing template

Response

Tool updated successfully

function
object
required
type
enum<string>

Tool type (always 'function')

Available options:
function
endpoint
string

API endpoint for the tool

method
enum<string>

HTTP method

Available options:
GET,
POST,
PUT,
DELETE,
PATCH
queryParametersKeys
string[]

Query parameter keys

pathParametersKeys
string[]

Path parameter keys

bodyPropertyKey
string

Body property key for request body

customHeaders
object[]

Custom headers for the tool

isFormDataBody
boolean

Whether the body is form data

bodyMode
enum<string>

Body mode

Available options:
simple,
advanced
bodyJsonTemplate
string

JSON body template for advanced mode

responsePostProcessingEnabled
boolean

Whether response post-processing is enabled

responsePostProcessingTemplate
string

JS expression template for response post-processing