Flow Folders
Return a flat list of all folders for the tenant, ordered by position then name. The frontend assembles the folder tree from parent_id references.
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flow-folders HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"name": "My Folder",
"parent_id": null,
"position": 0,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
]
}Create a new flow folder.
API key passed in the Authorization header. Format: <api-key>
The folder name.
The ID of the parent folder. Omit or set to null for a root-level folder.
Display order position within the parent.
Folder created
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flow-folders HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"name": "Integrations",
"parent_id": null,
"position": 0
}{
"data": {
"id": 1,
"name": "Integrations",
"parent_id": null,
"position": 0,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}Update an existing flow folder. All fields are optional — only provided fields are updated.
API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow folder.
The folder name.
The ID of the parent folder. Set to null to move to the root level.
Display order position within the parent.
Folder updated
Unauthenticated
Unauthorized
Folder not found
Validation Error
PUT /api/v1/flow-folders/{flow_folder} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"name": "Renamed Folder",
"parent_id": 2,
"position": 1
}{
"data": {
"id": 1,
"name": "Renamed Folder",
"parent_id": 2,
"position": 1,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}Delete a flow folder. If recursive is true, all descendant folders are also deleted and any flows inside them are detached (their folder assignment is cleared).
API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow folder.
If true, deletes all descendant folders and detaches their flows.
Folder deleted
Unauthenticated
Unauthorized
Folder not found
DELETE /api/v1/flow-folders/{flow_folder} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"recursive": true
}{
"message": "Folder deleted successfully."
}Last updated
Was this helpful?