Trillet AI logo

Remove Flow from Folder

Remove a specific flow from a folder identified by its folderId and flowId.

DELETEhttps://api.trillet.ai/v1/api/flow-folders/{folderId}/flows/{pathwayId}

Path Parameters

folderIdstringrequired

The ID of the folder from which the flow will be removed.

pathwayIdstringrequired

The ID of the flow to remove from the folder.

Response Fields

_idstring

The unique identifier of the folder.

workspaceIdstring

The identifier of the workspace where the folder belongs.

namestring

The name of the folder.

colorstring

The color of the folder, represented as a hex code.

iconstring

The icon identifier for the folder.

flowTypestring

The type of flow, either "call" or "message".

pathwayModelstring

The model type for flows, derived from flowType.

pathwaysarray

An updated array of flow IDs associated with the folder after removal.

createdAtstring

Timestamp when the folder was created (ISO 8601 format).

updatedAtstring

Timestamp when the folder was last updated (ISO 8601 format).

{
  "_id": "folder123",
  "workspaceId": "workspace456",
  "name": "My Workflow Folder",
  "color": "#FF0000",
  "icon": "folder-icon",
  "flowType": "call",
  "pathwayModel": "Flow",
  "pathways": [],
  "createdAt": "2023-10-15T09:30:00Z",
  "updatedAt": "2023-10-15T11:00:00Z"
}