AI
Update AI tool config
PATCH
/
v1
/
ai
/
agents
/
{agentID}
/
tools
/
{toolKey}
Update AI tool config
curl --request PATCH \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/tools/{toolKey} \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"config": {}
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, config: {}})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/tools/{toolKey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/tools/{toolKey}"
payload = {
"enabled": True,
"config": {}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"applied": true,
"callable": true,
"config": {},
"description": "<string>",
"enabled": true,
"id": "<string>",
"label": "<string>",
"name": "<string>",
"review_required": true,
"risk": "<string>",
"status": "<string>",
"tool_description": "<string>",
"tool_key": "<string>",
"tool_label": "<string>",
"updated_at": "<string>",
"lastUsedAt": "<string>",
"review": {
"agent_id": "<string>",
"created_at": "<string>",
"details": {},
"id": "<string>",
"issue_type": "<string>",
"rawSeverity": "<string>",
"severity": "<string>",
"status": "<string>",
"summary": "<string>",
"title": "<string>",
"updatedAt": "<string>",
"updated_at": "<string>",
"assigned_to": "<string>",
"resolved_at": "<string>",
"source_ref": "<string>"
},
"updated_by": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Response
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Update AI tool config
curl --request PATCH \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/tools/{toolKey} \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"config": {}
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, config: {}})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/tools/{toolKey}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/tools/{toolKey}"
payload = {
"enabled": True,
"config": {}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"applied": true,
"callable": true,
"config": {},
"description": "<string>",
"enabled": true,
"id": "<string>",
"label": "<string>",
"name": "<string>",
"review_required": true,
"risk": "<string>",
"status": "<string>",
"tool_description": "<string>",
"tool_key": "<string>",
"tool_label": "<string>",
"updated_at": "<string>",
"lastUsedAt": "<string>",
"review": {
"agent_id": "<string>",
"created_at": "<string>",
"details": {},
"id": "<string>",
"issue_type": "<string>",
"rawSeverity": "<string>",
"severity": "<string>",
"status": "<string>",
"summary": "<string>",
"title": "<string>",
"updatedAt": "<string>",
"updated_at": "<string>",
"assigned_to": "<string>",
"resolved_at": "<string>",
"source_ref": "<string>"
},
"updated_by": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}