cURL
curl --request POST \ --url https://api.trillet.ai/v1/api/flow-folders/{folderId}/pathways \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "pathwayId": "<string>", "pathwayType": "<string>" }'
{ "_id": "folder123", "workspaceId": "workspace456", "name": "My Workflow Folder", "color": "#FF0000", "icon": "folder-icon", "flowType": "call", "pathwayModel": "Flow", "pathways": ["flow123"], "createdAt": "2023-10-15T09:30:00Z", "updatedAt": "2023-10-15T10:00:00Z" }
Add a flow to a specific folder identified by its folderId.
flowType
{ "pathwayId": "flow123", "pathwayType": "call" }