cURL
curl --request PATCH \ --url https://api.plugit.chat/v2/agents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "id": "<string>", "title": "<string>", "prompt": "<string>", "knowledge": "<string>", "tools": [ { "type": "customApi", "customApi": { "endpoints": [ {} ] } } ], "delay": 123, "categories": [ { "title": "<string>", "criteria": "<string>", "webhook": { "url": "<string>", "headers": { "x-api-key": "your-secret" } }, "disableAI": true } ], "version": "<string>", "enabled": true, "default_language": "<string>", "external_id": "<string>" } '
{ "id": "<string>", "title": "<string>", "version": "<string>", "enabled": true, "default_language": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "prompt": "<string>", "knowledge": "<string>", "tools": [ { "type": "customApi", "customApi": { "endpoints": [ {} ] } } ], "delay": 123, "categories": [ { "title": "<string>", "criteria": "<string>", "webhook": { "url": "<string>", "headers": { "x-api-key": "your-secret" } }, "disableAI": true } ], "external_id": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Provide to make POST/PATCH requests idempotent within 24h.
128
Update an agent by id. This simplified API accepts the id in the payload.
Show child attributes
Updated
Configured tools for this agent.
Conversation categories and routing rules.