Flow Versions
API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Comma-separated list of relationships to include. Available: savedByUser, deployedByUser, steps, runs, latestRun, schedules, filters, schedules, variables
Sort field. Prefix with - for descending. Available: created_at
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flows/{flow}/versions HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"flow_id": 0,
"flow_name": "string",
"flow_priority": 0,
"iteration": 0,
"status": "Draft",
"is_deployed": false,
"is_editable": true,
"deployed_at": null,
"deployed_by": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"has_callback_step": false,
"latest_run": null,
"steps": [],
"schedules": []
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://core.wearepatchworks.com/api/v1/flows/4/versions",
"per_page": 15,
"to": 1,
"total": 1
},
"links": {
"first": "https://core.wearepatchworks.com/api/v1/flows/4/versions?page=1",
"last": "https://core.wearepatchworks.com/api/v1/flows/4/versions?page=1",
"prev": null,
"next": null
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flows/{flow}/versions HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"flow_id": 0,
"flow_name": "string",
"flow_priority": 0,
"iteration": 0,
"status": "Draft",
"is_deployed": false,
"is_editable": true,
"deployed_at": null,
"deployed_by": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"has_callback_step": false,
"latest_run": null,
"steps": [],
"schedules": []
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flows/{flow}/versions/{version} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"flow_id": 0,
"flow_name": "string",
"flow_priority": 0,
"iteration": 0,
"status": "Draft",
"is_deployed": false,
"is_editable": true,
"deployed_at": null,
"deployed_by": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"has_callback_step": false,
"latest_run": null,
"steps": [],
"schedules": []
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
PUT /api/v1/flows/{flow}/versions/{version} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"deployed_at": null
}{
"data": {
"id": 0,
"flow_id": 0,
"flow_name": "string",
"flow_priority": 0,
"iteration": 0,
"status": "Draft",
"is_deployed": false,
"is_editable": true,
"deployed_at": null,
"deployed_by": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"has_callback_step": false,
"latest_run": null,
"steps": [],
"schedules": []
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/flows/{flow}/versions/{version} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "string"
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
The version identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flows/{flow}/versions/{version}/copy HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"flow_id": 0,
"flow_name": "string",
"flow_priority": 0,
"iteration": 0,
"status": "Draft",
"is_deployed": false,
"is_editable": true,
"deployed_at": null,
"deployed_by": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z",
"has_callback_step": false,
"latest_run": null,
"steps": [],
"schedules": []
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flow-versions/{flow_version}/upload HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"private": "example_private"
}{
"message": "string"
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flows/{flow}/version-metrics HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"name": "My Example",
"enabled_at": "2025-01-15T10:30:00.000000Z",
"status": "Draft",
"format": "csv",
"body": "example_body",
"deployed_at": "2025-01-15T10:30:00.000000Z",
"labels": "example_labels",
"notification_groups": "example_notification_groups",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"description": "A description of the resource",
"layout_direction": "example_layout_direction",
"is_enabled": {},
"latest_version": {},
"current_version": {},
"deployed_version": {},
"latest_deployed_version": [],
"versions": [],
"version_type_counts": [],
"message_brokers": [],
"message_broker_queues": [],
"notification_group_ids": [],
"webhooks": "example_webhooks",
"callbacks": "example_callbacks",
"current_version_step_count": 5,
"current_version_connector_count": 5,
"current_version_script_count": 5,
"current_version_cache_count": 5,
"current_version_data_pool_count": 5,
"current_version_cross_ref_count": 5,
"use_queued_time": "example_use_queued_time",
"remove_failed_payloads": [],
"priority": 1,
"prod_flag": [],
"deployments": [],
"webhooks_count": 5,
"callbacks_count": 5,
"marketplace_app_id": 1,
"blueprint_id": 1,
"blueprint_version_number": "example_blueprint_version_number",
"flow_folder_id": 1
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://app.wearepatchworks.com/core-main/api/v1/flows/{flow}/version-metrics",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://app.wearepatchworks.com/core-main/api/v1/flows/{flow}/version-metrics?page=1",
"last": "https://app.wearepatchworks.com/core-main/api/v1/flows/{flow}/version-metrics?page=1",
"prev": null,
"next": null
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
Filter results by flow_version_id.
Comma-separated list of relationships to include. Available: flowVersion
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flow-versions/{flow_version}/schedules HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"flow_version_id": 0,
"cron_string": "string",
"flow_template_schedule_id": null,
"deleted_at": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://core.wearepatchworks.com/api/v1/flow-versions/6/schedules",
"per_page": 15,
"to": 1,
"total": 1
},
"links": {
"first": "https://core.wearepatchworks.com/api/v1/flow-versions/6/schedules?page=1",
"last": "https://core.wearepatchworks.com/api/v1/flow-versions/6/schedules?page=1",
"prev": null,
"next": null
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flow-versions/{flow_version}/schedules HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"cron_string": "string",
"deployed_at": null
}{
"data": {
"id": 0,
"flow_version_id": 0,
"cron_string": "string",
"flow_template_schedule_id": null,
"deleted_at": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
The schedule identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
PUT /api/v1/flow-versions/{flow_version}/schedules/{schedule} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"cron_string": "string",
"deployed_at": null
}{
"data": {
"id": 0,
"flow_version_id": 0,
"cron_string": "string",
"flow_template_schedule_id": null,
"deleted_at": null,
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow version identifier.
The schedule identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/flow-versions/{flow_version}/schedules/{schedule} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "string"
}API key passed in the Authorization header. Format: <api-key>
The step identifier.
The flow version identifier.
OK
No content
Validation Error
PATCH /api/v1/flow-versions/{flow_version}/graph/steps/{step} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?