Ziwako Docs
Ziwako AI (Mayele)Référence APIAgentTemplates

Update AgentTemplate

PATCH
/admin/agent-templates/{id}

Admin only.

Authorization

AccessToken
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/admin/agent-templates/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "status": 0,  "message": "string",  "data": {    "slug": "string",    "name": "string",    "description": "",    "role": "",    "avatar": "",    "instructions": "string",    "modelId": "openai/gpt-4o",    "defaultOptions": {},    "tools": [      {}    ],    "workflows": [      {        "workflowTemplateId": null,        "label": "string",        "description": ""      }    ],    "subAgents": [      {        "agentTemplateId": null,        "label": "string",        "description": ""      }    ],    "isSupervisor": false,    "memory": {},    "knowledge": {},    "scorers": [      {}    ],    "generationCapabilities": [      {}    ],    "category": "",    "tags": [      "string"    ],    "featured": false,    "useCount": 0,    "author": "Ziwako",    "isPublic": false,    "publishedAt": null,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "id": "string"  },  "type": "string",  "code": "string"}