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

Update WorkflowTemplate

PATCH
/admin/workflow-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/workflow-templates/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "status": 0,  "message": "string",  "data": {    "slug": "string",    "name": "string",    "description": "",    "trigger": {      "type": "manual",      "config": {}    },    "nodes": [      {}    ],    "edges": [      {}    ],    "dependencies": [      {        "key": "string",        "type": "agent_template",        "label": "string",        "description": "",        "defaultConfig": {},        "required": true,        "agentTemplateId": null      }    ],    "nodeDependencyMap": [      {        "nodeId": "string",        "dependencyKey": "string"      }    ],    "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"}