curl --request PUT \
--url https://api.anam.ai/v1/tools/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "search_products",
"description": "Search the product catalog",
"type": "CLIENT",
"config": {
"parameters": {}
}
}
'{
"id": "0084f07b-6106-4cd8-be32-a66a64284b31",
"name": "search_knowledge_base",
"description": "Search the knowledge base for product information",
"type": "CLIENT",
"config": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"usageCount": 123
}Update an existing tool
curl --request PUT \
--url https://api.anam.ai/v1/tools/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "search_products",
"description": "Search the product catalog",
"type": "CLIENT",
"config": {
"parameters": {}
}
}
'{
"id": "0084f07b-6106-4cd8-be32-a66a64284b31",
"name": "search_knowledge_base",
"description": "Search the knowledge base for product information",
"type": "CLIENT",
"config": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"usageCount": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Tool ID
Updated name for the tool
1 - 64"search_products"
Updated description of what the tool does
1 - 1024"Search the product catalog"
Updated tool type
CLIENT, SERVER_RAG, SERVER_WEBHOOK, SYSTEM Updated type-specific configuration
Show child attributes
Successfully updated tool
Unique identifier for the tool
"0084f07b-6106-4cd8-be32-a66a64284b31"
Name of the tool
"search_knowledge_base"
Description of what the tool does
"Search the knowledge base for product information"
Type of tool
CLIENT, SERVER_RAG, SERVER_WEBHOOK, SYSTEM Type-specific configuration
When the tool was created
When the tool was last updated
Number of personas using this tool
Was this page helpful?