Change a tool
PATCH
/v1/tools/{id}
const url = 'https://api.orvoca.com/v1/tools/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","config":{"additionalProperty":"example"},"secrets":{"headers":{}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.orvoca.com/v1/tools/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "config": { "additionalProperty": "example" }, "secrets": { "headers": {} } }'URL, body and headers apply to live agents at once. The name, description and parameters the agent sees change when the agent is next published. Changing the config or headers clears its test: send a test again before publishing.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
description
When the agent should use it, in plain words
string
config
HttpActionConfig for http tools, CalendarConfig for calendar
object
key
additional properties
secrets
object
headers
object
key
additional properties
string
Responses
Section titled “Responses”Updated
Media typeapplication/json
object
id
required
string
kind
required
string
name
required
Function name the agent calls, e.g. check_order
string
description
required
string | null
config
secret_headers
required
Names of the stored headers; values are never returned
Array<string>
status
required
string
tested_at
required
string | null
created_at
required
string | null
updated_at
required
string | null
Example
{ "kind": "calendar", "status": "active"}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not signed in or bad API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not allowed
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}